Move gnupg configuration

This commit is contained in:
Oliver Davies 2025-07-27 18:54:34 +01:00
parent d19c5e6bcd
commit 9dbf58c1b7
5 changed files with 23 additions and 24 deletions

View file

@ -8,7 +8,6 @@
./dev-commit.nix
./direnv.nix
./flameshot.nix
./gnupg.nix
./gtk.nix
./media/handbrake.nix
./media/mpv.nix

View file

@ -1,8 +0,0 @@
{
home.file.".gnupg/gpg-agent.conf".text = ''
allow-preset-passphrase
default-cache-ttl 600
max-cache-ttl 7200
enable-ssh-support
'';
}

View file

@ -3,7 +3,6 @@
./avahi.nix
./dwm
./gitea-actions-runner.nix
./gnupg.nix
./nixpad
./podman.nix
];

View file

@ -1,14 +0,0 @@
{ pkgs, ... }:
{
security.pam.services.login.gnupg.enable = true;
programs = {
gnupg.agent = {
enable = true;
enableSSHSupport = true;
pinentryPackage = pkgs.pinentry-qt;
};
};
}

23
modules2/gnupg.nix Normal file
View 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
'';
};
}