mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-01 14:26:33 +01:00
24 lines
318 B
Nix
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";
|
|
};
|
|
};
|
|
};
|
|
}
|