Make sops use disabled by default
This commit is contained in:
parent
65e4352f56
commit
d03b0e285c
@ -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" = { };
|
||||
|
||||
};
|
||||
}
|
||||
|
@ -26,6 +26,7 @@
|
||||
time.timeZone = "Europe/Berlin";
|
||||
|
||||
modules = {
|
||||
sops.enable = true;
|
||||
nix-settings.enable = true;
|
||||
xserver-defaults.enable = true;
|
||||
keymap.enable = true;
|
||||
|
@ -35,6 +35,7 @@
|
||||
time.timeZone = "Europe/Berlin";
|
||||
|
||||
modules = {
|
||||
sops.enable = true;
|
||||
nix-settings.enable = true;
|
||||
xserver-defaults.enable = true;
|
||||
keymap.enable = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user