specify systemd-network as owner+group for wg secrets
This commit is contained in:
parent
f0f0229345
commit
61dbfd2da6
@ -73,9 +73,14 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
sops.secrets = lib.mkMerge (map (cfg: {
|
sops.secrets = let
|
||||||
"${cfg.serverPrivateKeyFile}" = { };
|
def = {
|
||||||
"${cfg.clientPublicKeyFile}" = { };
|
owner = "systemd-network";
|
||||||
|
group = "systemd-network";
|
||||||
|
};
|
||||||
|
in lib.mkMerge (map (cfg: {
|
||||||
|
"${cfg.serverPrivateKeyFile}" = def;
|
||||||
|
"${cfg.clientPublicKeyFile}" = def;
|
||||||
}) interfaces);
|
}) interfaces);
|
||||||
|
|
||||||
assertions = lib.mkAfter (secretAssertions ++ uniquenessAssertions);
|
assertions = lib.mkAfter (secretAssertions ++ uniquenessAssertions);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user