configuration.nix/hosts/skipper/security.nix

25 lines
525 B
Nix

{ pkgs, ... }: {
security = {
pam = {
services = {
passwd.enableGnomeKeyring = true;
login.enableGnomeKeyring = true;
hyprlock = { };
};
u2f = {
enable = true;
authFile = "/etc/u2f_keys";
cue = true;
};
};
polkit.enable = true;
rtkit.enable = true;
sudo = {
package = pkgs.sudo.override { withInsults = true; };
extraConfig = ''
Defaults lecture="never"
'';
wheelNeedsPassword = true;
};
};
}