This commit is contained in:
parent
a0575bdb2a
commit
703bf836de
210 changed files with 1 additions and 1 deletions
23
modules/gnupg.nix
Normal file
23
modules/gnupg.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
flake.modules = {
|
||||
nixos.pc =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
security.pam.services.login.gnupg.enable = true;
|
||||
|
||||
programs.gnupg.agent = {
|
||||
enable = true;
|
||||
enableSSHSupport = true;
|
||||
|
||||
pinentryPackage = pkgs.pinentry-qt;
|
||||
};
|
||||
};
|
||||
|
||||
homeManager.base.home.file.".gnupg/gpg-agent.conf".text = ''
|
||||
allow-preset-passphrase
|
||||
default-cache-ttl 600
|
||||
max-cache-ttl 7200
|
||||
enable-ssh-support
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue