diff options
Diffstat (limited to 'modules/root/suspend.nix')
-rw-r--r-- | modules/root/suspend.nix | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/modules/root/suspend.nix b/modules/root/suspend.nix deleted file mode 100644 index 814ae95..0000000 --- a/modules/root/suspend.nix +++ /dev/null @@ -1,16 +0,0 @@ -{ lib, config, ... }: { - options = { - suspend.enable = lib.mkEnableOption "enables suspend"; - }; - - config = lib.mkIf (! config.suspend.enable) { - # Disable suspend targets - systemd.targets = builtins.listToAttrs (map (name: { - inherit name; - value = { - enable = false; - unitConfig.DefaultDependencies = "no"; - }; - }) ["sleep" "suspend" "hibernate" "hybrid-sleep"]); - }; -} |