diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/hosts/optiplex/configuration.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/hosts/optiplex/configuration.nix b/modules/hosts/optiplex/configuration.nix index cbde612..acda07f 100644 --- a/modules/hosts/optiplex/configuration.nix +++ b/modules/hosts/optiplex/configuration.nix @@ -46,5 +46,14 @@ package = config.boot.kernelPackages.nvidiaPackages.stable; # Still good for 1050 }; + # Disable suspend targets + systemd.targets = builtins.listToAttrs (map (name: { + inherit name; + value = { + enable = false; + unitConfig.DefaultDependencies = "no"; + }; + }) ["sleep" "suspend" "hibernate" "hybrid-sleep"]); + system.stateVersion = "24.11"; } |