nix-conf/home-modules/gpg/default.nix
2024-07-10 23:02:54 +02:00

24 lines
318 B
Nix

{
config,
lib,
pkgs,
...
}:
let
cfg = config.jopejoe1.gpg;
in
{
options.jopejoe1.gpg = {
enable = lib.mkEnableOption "Enable Nushell";
};
config = lib.mkIf cfg.enable {
programs = {
gpg = {
enable = true;
homedir = "${config.xdg.dataHome}/gnupg";
};
};
};
}