diff --git a/systems/LoutreOS/network.nix b/systems/LoutreOS/network.nix index 1e48cc2..d96b7c1 100644 --- a/systems/LoutreOS/network.nix +++ b/systems/LoutreOS/network.nix @@ -146,11 +146,16 @@ }; }; - systemd.services.systemd-networkd.serviceConfig = { + systemd.services.systemd-networkd = { + unitConfig = { + RequiresMountsFor = "/mnt/secrets/wireguard"; + }; + serviceConfig = { LoadCredential = [ "network.wireguard.private.wg0:/mnt/secrets/wireguard/wireguard.private" "network.wireguard.preshared.wg0:/mnt/secrets/wireguard/wireguard.preshared" ]; + }; }; #################