enable gpg

This commit is contained in:
jopejoe1 2024-04-18 16:12:00 +02:00
parent b15b60bc07
commit c5564d5a95
3 changed files with 28 additions and 0 deletions

View file

@ -6,6 +6,7 @@
./direnv
./firefox
./git
./gpg
./nushell
];
}

View file

@ -0,0 +1,19 @@
{ 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";
};
};
};
}