Files
nix-config/modules/nixos/desktop/security.nix
Ryan Yin 9aa0ff80ae feat: update flake.lock
fix: issues introduced by the update
chore: --use-remote-sudo is deprecated, use --sudo instead
2025-06-23 15:27:18 +08:00

29 lines
793 B
Nix
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
config,
pkgs,
...
}: {
# security with polkit
security.polkit.enable = true;
# security with gnome-kering
services.gnome = {
gnome-keyring.enable = true;
# Use gnome keyring's SSH Agent
# https://wiki.gnome.org/Projects/GnomeKeyring/Ssh
gcr-ssh-agent.enable = false;
};
# The OpenSSH agent remembers private keys for you
# so that you dont have to type in passphrases every time you make an SSH connection.
# Use `ssh-add` to add a key to the agent.
programs.ssh.startAgent = true;
security.pam.services.greetd.enableGnomeKeyring = true;
# gpg agent with pinentry
programs.gnupg.agent = {
enable = true;
pinentryPackage = pkgs.pinentry-qt;
enableSSHSupport = false;
settings.default-cache-ttl = 4 * 60 * 60; # 4 hours
};
}