summaryrefslogtreecommitdiff
path: root/modules/hosts
diff options
context:
space:
mode:
authorTim Keller <tjkeller.xyz>2025-02-09 14:41:25 -0600
committerTim Keller <tjkeller.xyz>2025-02-09 14:41:25 -0600
commit689a2371dc3b51f561c1313c59c38b36050cdcbb (patch)
treeed6f99db311cc005f161d0686ac751d98efa25eb /modules/hosts
parentb03202e3ff9af9c961f813332c962913b6f81d22 (diff)
downloadnixos-689a2371dc3b51f561c1313c59c38b36050cdcbb.tar.xz
nixos-689a2371dc3b51f561c1313c59c38b36050cdcbb.zip
disable suspend on optiplex
Diffstat (limited to 'modules/hosts')
-rw-r--r--modules/hosts/optiplex/configuration.nix9
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";
}