1
0

profiles/wg-clerie: Only configure sops secret if we want to use that

This commit is contained in:
clerie 2025-03-20 19:30:10 +01:00
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 = {