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