From 85cc291fd4c80bd2776e4c1314b2d60b44c3d812 Mon Sep 17 00:00:00 2001 From: genofire Date: Tue, 5 Jul 2022 22:39:45 +0200 Subject: [PATCH] chore(nixos): wifi and power --- nixos/desktop-sway.nix | 2 +- nixos/desktop.nix | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/nixos/desktop-sway.nix b/nixos/desktop-sway.nix index f102a27..becb7d5 100644 --- a/nixos/desktop-sway.nix +++ b/nixos/desktop-sway.nix @@ -19,7 +19,7 @@ matchConfig = { Name = "wlan0"; SSID = [ - "HotoHo-v6" + "urbanForest-v6" ]; }; networkConfig = { diff --git a/nixos/desktop.nix b/nixos/desktop.nix index 5d59cb3..59ea225 100644 --- a/nixos/desktop.nix +++ b/nixos/desktop.nix @@ -48,11 +48,13 @@ # openFirewall = true; - by enable }; + services.udev.extraRules = lib.mkMerge [ - # autosuspend USB devices - ''ACTION=="add", SUBSYSTEM=="usb", TEST=="power/control", ATTR{power/control}="auto"'' - # autosuspend PCI devices - ''ACTION=="add", SUBSYSTEM=="pci", TEST=="power/control", ATTR{power/control}="auto"'' + # meine maus geht immer aus + # # autosuspend USB devices + # ''ACTION=="add", SUBSYSTEM=="usb", 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 ''ACTION=="add", SUBSYSTEM=="net", NAME=="enp*", RUN+="${pkgs.ethtool}/sbin/ethtool -s $name wol d"'' ];