Compare commits
2 commits
73f9033023
...
1f24d8a001
Author | SHA1 | Date | |
---|---|---|---|
1f24d8a001 | |||
5ebb95135a |
2 changed files with 21 additions and 0 deletions
|
@ -15,5 +15,7 @@
|
|||
system.autoUpgrade = {
|
||||
enable = true;
|
||||
flake = "git+https://git.icanttype.org/cdombroski/nix-configs.git";
|
||||
allowReboot = true;
|
||||
rebootWindow = { lower = "02:00"; upper = "06:00"; };
|
||||
};
|
||||
}
|
||||
|
|
|
@ -98,6 +98,25 @@
|
|||
|
||||
security = {
|
||||
rtkit.enable = true;
|
||||
polkit = {
|
||||
enable = true;
|
||||
extraConfig = ''
|
||||
polkit.addRule(function(action, subject) {
|
||||
if (
|
||||
subject.isInGroup("users")
|
||||
&& (
|
||||
action.id == "org.freedesktop.login1.reboot" ||
|
||||
action.id == "org.freedesktop.login1.reboot-multiple-sessions" ||
|
||||
action.id == "org.freedesktop.login1.power-off" ||
|
||||
action.id == "org.freedesktop.login1.power-off-multiple-sessions"
|
||||
)
|
||||
)
|
||||
{
|
||||
return polkit.Result.YES;
|
||||
}
|
||||
})
|
||||
'';
|
||||
};
|
||||
};
|
||||
users.users.cdombroski = {
|
||||
isNormalUser = true;
|
||||
|
|
Loading…
Reference in a new issue