fix networkd not working on boot

This commit is contained in:
nyanloutre 2024-12-20 19:17:16 +01:00
parent 17ff809406
commit c9c0061ff7

View File

@ -146,12 +146,17 @@
}; };
}; };
systemd.services.systemd-networkd.serviceConfig = { systemd.services.systemd-networkd = {
unitConfig = {
RequiresMountsFor = "/mnt/secrets/wireguard";
};
serviceConfig = {
LoadCredential = [ LoadCredential = [
"network.wireguard.private.wg0:/mnt/secrets/wireguard/wireguard.private" "network.wireguard.private.wg0:/mnt/secrets/wireguard/wireguard.private"
"network.wireguard.preshared.wg0:/mnt/secrets/wireguard/wireguard.preshared" "network.wireguard.preshared.wg0:/mnt/secrets/wireguard/wireguard.preshared"
]; ];
}; };
};
################# #################
# ROUTING RULES # # ROUTING RULES #