1
0
Fork 0
mirror of https://git.sr.ht/~azikx/wyswort synced 2024-10-30 11:06:19 +00:00
wyswort/host/misc/security.nix
2024-10-15 22:18:01 +09:00

23 lines
527 B
Nix

{ ... }: {
security = {
sudo = { # FUCKING CRAP
enable = true;
};
doas = { # VERY TOP
enable = true;
wheelNeedsPassword = true;
extraRules = [{
users = [ "megamozg" ];
keepEnv = true;
persist = true;
}];
extraConfig =
" permit nopass megamozg as root cmd light\n permit nopass megamozg as root cmd tee\n";
};
pam = { # SOMTHING WITH FPRINT
services = { swaylock.fprintAuth = true; };
};
polkit = { enable = true; };
};
}