From 9d310e9e8f653007b002a5e0809bdf8a413dbbbd Mon Sep 17 00:00:00 2001 From: clerie Date: Sat, 23 Sep 2023 17:55:26 +0200 Subject: [PATCH] hosts/zinc: enable gnome desktop --- configuration/desktop/power.nix | 2 +- hosts/zinc/configuration.nix | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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 ];