mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
[Network] Enable WakeOnLan by unicast packet on all physical interfaces
This commit is contained in:
parent
9b1a0744a6
commit
4ba062d0db
1 changed files with 6 additions and 0 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue