This commit is contained in:
Lucy Hochkamp 2025-07-29 03:02:25 +02:00
parent 9ca7a8d8f6
commit 414e830efa
No known key found for this signature in database
14 changed files with 376 additions and 62 deletions

View file

@ -13,5 +13,15 @@ in
boot.initrd.systemd.enable = true;
hardware.keyboard.zsa.enable = true;
programs.nh.enable = true;
security.polkit.extraConfig = ''
polkit.addRule(function(action, subject) { // make run0 keep pw for some time (tm)
if (
subject.isInGroup("wheel")
&& action.id == "org.freedesktop.systemd1.manage-units"
) {
return polkit.Result.AUTH_ADMIN_KEEP;
}
});
'';
};
}