fix networkd not working on boot
This commit is contained in:
parent
17ff809406
commit
c9c0061ff7
@ -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 #
|
||||||
|
Loading…
Reference in New Issue
Block a user