diff options
author | Tim Keller <tjkeller.xyz> | 2025-02-09 14:41:25 -0600 |
---|---|---|
committer | Tim Keller <tjkeller.xyz> | 2025-02-09 14:41:25 -0600 |
commit | 689a2371dc3b51f561c1313c59c38b36050cdcbb (patch) | |
tree | ed6f99db311cc005f161d0686ac751d98efa25eb /modules/hosts/optiplex | |
parent | b03202e3ff9af9c961f813332c962913b6f81d22 (diff) | |
download | nixos-689a2371dc3b51f561c1313c59c38b36050cdcbb.tar.xz nixos-689a2371dc3b51f561c1313c59c38b36050cdcbb.zip |
disable suspend on optiplex
Diffstat (limited to 'modules/hosts/optiplex')
-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"; } |