.dotfiles/profiles/common/nixos/polkit.nix
2024-12-16 11:38:57 +01:00

16 lines
268 B
Nix

_:
{
security.pam.services = {
login.u2fAuth = true;
sudo.u2fAuth = true;
swaylock.u2fAuth = true;
swaylock.fprintAuth = false;
};
security.polkit.enable = true;
security.sudo.extraConfig = ''
Defaults env_keep+=SSH_AUTH_SOCK
'';
}