configuration.nix/hosts/skipper/security.nix

32 lines
642 B
Nix
Raw Normal View History

2023-05-18 16:11:26 +05:30
{pkgs, ...}: {
2023-04-07 20:55:19 +05:30
security = {
apparmor = {
enable = true;
enableCache = true;
};
audit.enable = true;
auditd.enable = true;
pam = {
services = {
passwd.enableGnomeKeyring = true;
login.enableGnomeKeyring = true;
2023-05-18 16:11:26 +05:30
swaylock = {};
2023-04-07 20:55:19 +05:30
};
u2f = {
enable = true;
authFile = "/etc/u2f_keys";
cue = true;
};
};
polkit.enable = true;
rtkit.enable = true;
sudo = {
2023-05-18 16:11:26 +05:30
package = pkgs.sudo.override {withInsults = true;};
2023-04-07 20:55:19 +05:30
extraConfig = ''
Defaults lecture="never"
'';
wheelNeedsPassword = true;
};
};
}