profiles/wg-clerie: Only configure sops secret if we want to use that
This commit is contained in:
parent
3ec00be4d0
commit
effb386e51
@ -40,10 +40,12 @@ in
|
|||||||
};
|
};
|
||||||
systemd.network.config.addRouteTablesToIPRoute2 = true;
|
systemd.network.config.addRouteTablesToIPRoute2 = true;
|
||||||
|
|
||||||
sops.secrets.wg-clerie = {
|
sops = (mkIf (cfg.privateKeyFile == null) {
|
||||||
owner = "systemd-network";
|
secrets.wg-clerie = {
|
||||||
group = "systemd-network";
|
owner = "systemd-network";
|
||||||
};
|
group = "systemd-network";
|
||||||
|
};
|
||||||
|
});
|
||||||
|
|
||||||
systemd.network.netdevs."10-wg-clerie" = {
|
systemd.network.netdevs."10-wg-clerie" = {
|
||||||
netdevConfig = {
|
netdevConfig = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user