diff --git a/configuration/desktop/power.nix b/configuration/desktop/power.nix index 31f6039..87c060a 100644 --- a/configuration/desktop/power.nix +++ b/configuration/desktop/power.nix @@ -1,7 +1,7 @@ { lib, config, ... }: { - boot.resumeDevice = (lib.head config.swapDevices).device; + boot.resumeDevice = lib.optionalString ((lib.length config.swapDevices) > 0) (lib.head config.swapDevices).device; services.logind = { lidSwitch = "suspend-then-hibernate"; }; diff --git a/hosts/zinc/configuration.nix b/hosts/zinc/configuration.nix index 385d246..84e354f 100644 --- a/hosts/zinc/configuration.nix +++ b/hosts/zinc/configuration.nix @@ -4,6 +4,9 @@ imports = [ ./hardware-configuration.nix + + ../../configuration/desktop + ./initrd.nix ];