1
0

pkgs/clerie-sops: Init sops

This commit is contained in:
2024-04-20 23:20:14 +02:00
parent 84b67ee47d
commit 63c60391cc
9 changed files with 182 additions and 5 deletions

View File

@@ -54,7 +54,9 @@ in
publicKey = "eyhJKV41E1F0gZHBNqyzUnj72xg5f3bdDduVtpPN4AY=";
}
];
privateKeyFile = if cfg.privateKeyFile == null then config.age.secrets.wg-monitoring.path else cfg.privateKeyFile;
privateKeyFile = if cfg.privateKeyFile != null then cfg.privateKeyFile else
if builtins.elem "wg-monitoring" (attrNames config.sops.secrets) then config.sops.secrets.wg-monitoring.path else
config.age.secrets.wg-monitoring.path;
};
};