refactor: removing needless module complexity
This commit is contained in:
18
modules/home/services/gpg/default.nix
Normal file
18
modules/home/services/gpg/default.nix
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.home.services.gpg;
|
||||
in {
|
||||
options = {
|
||||
home.services.gpg.enable = mkEnableOption "Enables gpg";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
services.gpg-agent = {
|
||||
enable = true;
|
||||
enableSshSupport = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user