diff --git a/hosts/common/optional/gnome.nix b/hosts/common/optional/gnome.nix deleted file mode 100644 index bce4bbf..0000000 --- a/hosts/common/optional/gnome.nix +++ /dev/null @@ -1,36 +0,0 @@ -{ - services = { - xserver = { - enable = true; - displayManager = { - gdm = { - enable = true; - autoSuspend = false; - }; - }; - desktopManager = { - gnome.enable = true; - }; - layout = "us"; - xkbVariant = ""; - }; - logind.lidSwitch = "ignore"; - }; - security.polkit.extraConfig = '' - polkit.addRule(function(action, subject) { - if (action.id == "org.freedesktop.login1.suspend" || - action.id == "org.freedesktop.login1.suspend-multiple-sessions" || - action.id == "org.freedesktop.login1.hibernate" || - action.id == "org.freedesktop.login1.hibernate-multiple-sessions") - { - return polkit.Result.NO; - } - }); - ''; - systemd.targets = { - sleep.enable = false; - suspend.enable = false; - hibernate.enable = false; - hybrid-sleep.enable = false; - }; -} \ No newline at end of file