Make sops use disabled by default
This commit is contained in:
@ -24,9 +24,11 @@ let
|
||||
cfg = config.modules.sops;
|
||||
in
|
||||
{
|
||||
options.modules.sops = { };
|
||||
options.modules.sops = {
|
||||
enable = lib.mkOption { default = false; };
|
||||
};
|
||||
|
||||
config = {
|
||||
config = lib.mkIf cfg.enable {
|
||||
sops.defaultSopsFile = ../../../secrets/secrets.yaml;
|
||||
sops.defaultSopsFormat = "yaml";
|
||||
|
||||
@ -52,6 +54,5 @@ in
|
||||
sops.secrets."syncthing/pianonix/cert" = { };
|
||||
sops.secrets."syncthing/public-keys/aspi-nix" = { };
|
||||
sops.secrets."syncthing/public-keys/pianonix" = { };
|
||||
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user