configuration.nix/hosts/skipper/security.nix

26 lines
541 B
Nix
Raw Normal View History

2023-11-04 16:12:45 +05:30
{ pkgs, ... }: {
2023-04-07 20:55:19 +05:30
security = {
pam = {
services = {
passwd.enableGnomeKeyring = true;
login.enableGnomeKeyring = true;
2024-05-12 18:38:07 +05:30
hyprlock = { };
2023-04-07 20:55:19 +05:30
};
u2f = {
enable = true;
2024-06-20 19:41:06 +05:30
authFile = "/persist/secrets/u2f/u2f_keys";
2023-04-07 20:55:19 +05:30
cue = true;
};
};
polkit.enable = true;
rtkit.enable = true;
sudo = {
2023-11-04 16:12:45 +05:30
package = pkgs.sudo.override { withInsults = true; };
2023-04-07 20:55:19 +05:30
extraConfig = ''
Defaults lecture="never"
'';
wheelNeedsPassword = true;
};
};
}