GPG module
This commit is contained in:
parent
c5b5639513
commit
4d13ff9fd6
2 changed files with 30 additions and 0 deletions
29
modules/programs.nix
Normal file
29
modules/programs.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.voidconf.programs;
|
||||
in
|
||||
{
|
||||
options.voidconf.programs = {
|
||||
gnupg = {
|
||||
enable = mkEnableOption "Enables basic GnuPG configuration";
|
||||
pinentryPackage = mkOption {
|
||||
default = pkgs.pinentry-qt;
|
||||
};
|
||||
};
|
||||
};
|
||||
config = {
|
||||
|
||||
# gpg
|
||||
gnupg.agent = mkIf cfg.gnupg.enable {
|
||||
enable = true;
|
||||
pinentryPackage = pkgs.pinentry-qt;
|
||||
};
|
||||
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue