31 lines
542 B
Nix
31 lines
542 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
let
|
|
inherit (lib) mkIf mkEnableOption;
|
|
cfg = config.home.services.gpg;
|
|
in
|
|
{
|
|
options = {
|
|
home.services.gpg.enable = mkEnableOption "Enables gpg";
|
|
};
|
|
config = mkIf cfg.enable {
|
|
services.gpg-agent = {
|
|
enable = true;
|
|
enableSshSupport = true;
|
|
enableBashIntegration = true;
|
|
enableFishIntegration = true;
|
|
enableZshIntegration = true;
|
|
pinentry = {
|
|
package = pkgs.pinentry-gnome3;
|
|
};
|
|
};
|
|
programs.gpg = {
|
|
enable = true;
|
|
};
|
|
};
|
|
}
|