[Network] Enable WakeOnLan by unicast packet on all physical interfaces

This commit is contained in:
Antoine Viallon 2023-04-16 17:15:49 +02:00
parent 9b1a0744a6
commit 4ba062d0db
Signed by: aviallon
GPG key ID: 186FC35EDEB25716

View file

@ -47,6 +47,12 @@ in
};
};
services.udev.extraRules = concatStringsSep "\n" [
(optionalString (!config.aviallon.laptop.enable) ''
ACTION=="add", SUBSYSTEM=="net", NAME=="enp*", RUN+="${pkgs.ethtool}/bin/ethtool -s $name wol gu"
'')
];
services.unbound.enable = (cfg.dns == "unbound");
networking.networkmanager = {