Skip to content

Commit

Permalink
Try flake checker again
Browse files Browse the repository at this point in the history
  • Loading branch information
arunoruto committed Dec 14, 2024
1 parent 894b773 commit cd111d4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
14 changes: 14 additions & 0 deletions modules/nixos/display/gdm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}
});
'';
};
}

0 comments on commit cd111d4

Please sign in to comment.