nixos/network-interfaces-systemd: fix WakeOnLan
WakeOnLan= was configured when using the scripted backend but not the networkd backend. The other link options are set in the .network file when using networkd, but WakeOnLan= is only available in a .link file.
This commit is contained in:
parent
679733b3ad
commit
d290c309f4
@ -389,6 +389,16 @@ in
|
||||
};
|
||||
})))
|
||||
vlanNetworks
|
||||
{
|
||||
systemd.network.links = pipe interfaces [
|
||||
(filter (i: i.wakeOnLan.enable))
|
||||
(map (i: nameValuePair "40-${i.name}" {
|
||||
matchConfig.OriginalName = i.name;
|
||||
linkConfig.WakeOnLan = concatStringsSep " " i.wakeOnLan.policy;
|
||||
}))
|
||||
listToAttrs
|
||||
];
|
||||
}
|
||||
];
|
||||
|
||||
# We need to prefill the slaved devices with networking options
|
||||
|
Loading…
Reference in New Issue
Block a user