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,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"
];
};
};
#################