gpg: move from module to user config
This commit is contained in:
@ -5,7 +5,6 @@
|
||||
./programs/emulators.nix
|
||||
./programs/firefox.nix
|
||||
./programs/forensics.nix
|
||||
./programs/gpg.nix
|
||||
./programs/graphics.nix
|
||||
./programs/libreoffice.nix
|
||||
./programs/lutris.nix
|
||||
|
@ -1,28 +0,0 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
cfg = config.modules.programs.gpg;
|
||||
in
|
||||
{
|
||||
options.modules.programs.gpg = {
|
||||
enable = lib.mkOption {
|
||||
default = false;
|
||||
example = true;
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
home.programs.gpg = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
home.services.gpg-agent = {
|
||||
enable = true;
|
||||
enableSshSupport = true;
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user