diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index a8b69a9..c31961d 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -33,6 +33,11 @@ jobs: NIXPKGS_ALLOW_INSECURE=1 nix flake check --no-build +<<<<<<< HEAD --impure # --show-trace +======= + # --show-trace + --impure +>>>>>>> 2aa9948 (Try flake checker again) # run: NIXPKGS_ALLOW_INSECURE=1 nix flake check --no-build --accept-flake-config --impure diff --git a/modules/nixos/display/gdm.nix b/modules/nixos/display/gdm.nix index 93601e0..6b32a52 100644 --- a/modules/nixos/display/gdm.nix +++ b/modules/nixos/display/gdm.nix @@ -30,6 +30,7 @@ settings = { "org/gnome/settings-daemon/plugins/power" = { ambient-enabled = false; + sleep-inactive-ac-timeout = lib.gvariant.mkUint32 0; }; "org/gnome/login-screen" = { # enable-fingerprint-authentication = false; @@ -39,5 +40,18 @@ } ]; }; + + # Disable auto suspend on login screen + 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; + } + }); + ''; }; }