config.nix/hosts/marty-pc/custom.nix
2026-04-11 17:21:28 +02:00

37 lines
622 B
Nix

{
config,
lib,
pkgs,
...
}:
{
networking = {
interfaces = {
enp42s0 = {
wakeOnLan = {
enable = true;
policy = [ "magic" ];
};
};
};
};
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;
}
});
'';
};
}