all: guard global sops stuff with needsDeploy
This commit is contained in:
parent
2d8c791d19
commit
455586ec1c
17
default.nix
17
default.nix
@ -66,14 +66,15 @@ in
|
||||
sops = {
|
||||
age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
|
||||
|
||||
secrets = {
|
||||
xin_secrets_deploy_key = {
|
||||
sopsFile = config.xin-secrets.deploy;
|
||||
owner = "root";
|
||||
group = "wheel";
|
||||
mode = "400";
|
||||
};
|
||||
};
|
||||
secrets =
|
||||
if config.needsDeploy.enable then {
|
||||
xin_secrets_deploy_key = {
|
||||
sopsFile = config.xin-secrets.deploy;
|
||||
owner = "root";
|
||||
group = "wheel";
|
||||
mode = "400";
|
||||
};
|
||||
} else { };
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user