configuration.nix/hosts/skipper/security.nix

32 lines
663 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-07-14 18:54:14 +05:30
settings = {
authFile = "/persist/secrets/u2f/u2f_keys";
cue = true;
};
2023-04-07 20:55:19 +05:30
};
};
2024-10-05 17:21:18 +05:30
polkit = {
enable = true;
adminIdentities = [ "unix-group:wheel" ];
};
2023-04-07 20:55:19 +05:30
rtkit.enable = true;
sudo = {
2024-10-05 17:21:18 +05:30
enable = true;
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;
};
};
}