1
0
mirror of https://github.com/tboerger/nixos-config synced 2025-02-21 23:21:08 +01:00
github.com-tboerger-nixos-c.../profiles/shared/programs/gnupg.nix
2024-11-24 16:13:14 +01:00

41 lines
570 B
Nix

{ pkgs, lib, config, options, ... }:
with lib;
let
cfg = config.profile.programs.gnupg;
in
{
options = {
profile = {
programs = {
gnupg = {
enable = mkEnableOption "GnuPG";
};
};
};
};
config = mkIf cfg.enable {
home = {
packages = with pkgs; [
pinentry
];
};
programs = {
gpg = {
enable = true;
};
};
services = {
gpg-agent = {
enable = true;
enableSshSupport = true;
enableZshIntegration = true;
};
};
};
}