diff options
| author | sinanmohd <sinan@sinanmohd.com> | 2025-12-05 09:38:13 +0530 |
|---|---|---|
| committer | sinan@sinanmohd.com <sinan@sinanmohd.com> | 2025-12-06 13:40:30 +0530 |
| commit | 3dc8bee3cb3a472dcf8d3990a6623327ac75d985 (patch) | |
| tree | 25146bea88b88f95ab1b0c13b2c7f7e0456ddba4 /os/cez/modules/specialisation/heater.nix | |
| parent | 7cf4cc6ae6b68cb206a65221b4ac9b4a3ea2e583 (diff) | |
feat(cez/specialisation/heater): init
Diffstat (limited to 'os/cez/modules/specialisation/heater.nix')
| -rw-r--r-- | os/cez/modules/specialisation/heater.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/os/cez/modules/specialisation/heater.nix b/os/cez/modules/specialisation/heater.nix new file mode 100644 index 0000000..68dbf4d --- /dev/null +++ b/os/cez/modules/specialisation/heater.nix @@ -0,0 +1,31 @@ +{ + config, + pkgs, + lib, + ... +}: +let + heater = pkgs.writeShellApplication { + name = "heater"; + runtimeInputs = with pkgs; [ + vulkan-tools + mangohud + ]; + + text = '' + MESA_VK_WSI_PRESENT_MODE=immediate mangohud vkcube --present_mode 0 + ''; + }; + username = config.global.userdata.name; +in +{ + imports = [ ./nvidia.nix ]; + + services.logind.settings.Login.HandleLidSwitch = "ignore"; + environment.systemPackages = [ heater ]; + home-manager.users.${username}.imports = [ + { + wayland.windowManager.sway.settings.exec = [ "${lib.getExe heater}" ]; + } + ]; +} |
