config.nix/hosts/marty-pc/custom.nix
2026-03-30 22:03:03 +02:00

27 lines
457 B
Nix

{
config,
lib,
pkgs,
...
}:
{
services.flatpak.enable = true;
virtualisation.docker.enable = true;
security.polkit = {
enable = true;
extraConfig = ''
polkit.addRule(function(action, subject) {
if (
subject.isInGroup("users")
&& (
action.id == "org.freedesktop.login1.suspend"
)
)
{
return polkit.Result.YES;
}
});
'';
};
}