chore(nixos): wifi and power
This commit is contained in:
parent
8efe99074d
commit
85cc291fd4
|
@ -19,7 +19,7 @@
|
||||||
matchConfig = {
|
matchConfig = {
|
||||||
Name = "wlan0";
|
Name = "wlan0";
|
||||||
SSID = [
|
SSID = [
|
||||||
"HotoHo-v6"
|
"urbanForest-v6"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
networkConfig = {
|
networkConfig = {
|
||||||
|
|
|
@ -48,11 +48,13 @@
|
||||||
# openFirewall = true; - by enable
|
# openFirewall = true; - by enable
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
services.udev.extraRules = lib.mkMerge [
|
services.udev.extraRules = lib.mkMerge [
|
||||||
# autosuspend USB devices
|
# meine maus geht immer aus
|
||||||
''ACTION=="add", SUBSYSTEM=="usb", TEST=="power/control", ATTR{power/control}="auto"''
|
# # autosuspend USB devices
|
||||||
# autosuspend PCI devices
|
# ''ACTION=="add", SUBSYSTEM=="usb", TEST=="power/control", ATTR{power/control}="auto"''
|
||||||
''ACTION=="add", SUBSYSTEM=="pci", TEST=="power/control", ATTR{power/control}="auto"''
|
# # autosuspend PCI devices
|
||||||
|
# ''ACTION=="add", SUBSYSTEM=="pci", TEST=="power/control", ATTR{power/control}="auto"''
|
||||||
# disable Ethernet Wake-on-LAN
|
# disable Ethernet Wake-on-LAN
|
||||||
''ACTION=="add", SUBSYSTEM=="net", NAME=="enp*", RUN+="${pkgs.ethtool}/sbin/ethtool -s $name wol d"''
|
''ACTION=="add", SUBSYSTEM=="net", NAME=="enp*", RUN+="${pkgs.ethtool}/sbin/ethtool -s $name wol d"''
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in New Issue