diff --git a/home/users/christian/default.nix b/home/users/christian/default.nix index adc589bc..60ea9d2d 100644 --- a/home/users/christian/default.nix +++ b/home/users/christian/default.nix @@ -28,6 +28,7 @@ in users."${username}" = { fonts.enable = !config.custom.roles.mobile.enable; git.enable = true; + gpg.enable = true; hardware = { kmonad.enable = !config.custom.roles.mobile.enable; xbindkeys.enable = !config.custom.roles.mobile.enable; diff --git a/home/users/christian/gpg/default.nix b/home/users/christian/gpg/default.nix new file mode 100644 index 00000000..1a4f942d --- /dev/null +++ b/home/users/christian/gpg/default.nix @@ -0,0 +1,28 @@ +{ config, lib, pkgs, ... }: + +with lib; + +let + + cfg = config.custom.users.christian.gpg; + +in + +{ + options = { + custom.users.christian.gpg = { + enable = mkEnableOption "GnuPG"; + }; + }; + + config = mkIf cfg.enable { + + home.file.".gnupg/gpg-agent.conf" = { + text = '' + pinentry-program ${getExe pkgs.pinentry} + ''; + }; + + programs.gpg.enable = true; + }; +}