Move gnupg configuration
This commit is contained in:
parent
d19c5e6bcd
commit
9dbf58c1b7
5 changed files with 23 additions and 24 deletions
|
@ -8,7 +8,6 @@
|
|||
./dev-commit.nix
|
||||
./direnv.nix
|
||||
./flameshot.nix
|
||||
./gnupg.nix
|
||||
./gtk.nix
|
||||
./media/handbrake.nix
|
||||
./media/mpv.nix
|
||||
|
|
|
@ -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
|
||||
'';
|
||||
}
|
|
@ -3,7 +3,6 @@
|
|||
./avahi.nix
|
||||
./dwm
|
||||
./gitea-actions-runner.nix
|
||||
./gnupg.nix
|
||||
./nixpad
|
||||
./podman.nix
|
||||
];
|
||||
|
|
|
@ -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
23
modules2/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