Move gnupg configuration to common profile
This commit is contained in:
parent
eadf45ae15
commit
1d2f2d5d1b
4 changed files with 18 additions and 8 deletions
|
@ -6,7 +6,7 @@
|
|||
default = "charlotte@vanpetegem.me";
|
||||
example = "charlotte@vanpetegem.me";
|
||||
description = ''
|
||||
Default email set in git config
|
||||
Default email set in global git config.
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
|
@ -1,14 +1,23 @@
|
|||
{ ... }:
|
||||
{ config, lib, ... }:
|
||||
|
||||
{
|
||||
custom.zfs.homeLinks = [
|
||||
options.custom.gnupg.pinentryFlavor = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "curses";
|
||||
example = "qt";
|
||||
description = ''
|
||||
Pinentry flavor for gnupg.
|
||||
'';
|
||||
};
|
||||
|
||||
config.custom.zfs.homeLinks = [
|
||||
{ path = ".gnupg/crls.d"; type = "data"; }
|
||||
{ path = ".gnupg/private-keys-v1.d"; type = "data"; }
|
||||
{ path = ".gnupg/pubring.kbx"; type = "data"; }
|
||||
{ path = ".gnupg/trustdb.gpg"; type = "data"; }
|
||||
];
|
||||
programs.gnupg.agent.enable = true;
|
||||
home-manager.users.charlotte = { pkgs, ... }: {
|
||||
config.programs.gnupg.agent.enable = true;
|
||||
config.home-manager.users.charlotte = { pkgs, ... }: {
|
||||
programs = {
|
||||
gpg.enable = true;
|
||||
};
|
||||
|
@ -16,7 +25,7 @@
|
|||
enable = true;
|
||||
defaultCacheTtl = 7200;
|
||||
maxCacheTtl = 99999;
|
||||
pinentryFlavor = "qt";
|
||||
pinentryFlavor = config.custom.gnupg.pinentryFlavor;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
../overlays/default.nix
|
||||
../configurations/direnv.nix
|
||||
../configurations/git.nix
|
||||
../configurations/gnupg.nix
|
||||
../configurations/locale.nix
|
||||
../configurations/neovim.nix
|
||||
../configurations/nix-index.nix
|
||||
|
@ -28,5 +29,4 @@
|
|||
youtube-dl
|
||||
];
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
../configurations/dropbox.nix
|
||||
../configurations/firefox.nix
|
||||
../configurations/fonts.nix
|
||||
../configurations/gnupg.nix
|
||||
../configurations/i3.nix
|
||||
../configurations/joplin.nix
|
||||
../configurations/kernel.nix
|
||||
|
@ -52,4 +51,6 @@
|
|||
fi
|
||||
'';
|
||||
};
|
||||
|
||||
custom.gnupg.pinentryFlavor = "qt";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue