From f1ed65d50c1e745681042ed4a6636e2cf8baff38 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Fri, 29 Mar 2024 10:14:41 -0500 Subject: [PATCH] Add resume commands for fixing foxtrot wifi --- modules/nixos/common.nix | 1 + nixos/foxtrot.nix | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/modules/nixos/common.nix b/modules/nixos/common.nix index fc6c3e4..e823c2f 100644 --- a/modules/nixos/common.nix +++ b/modules/nixos/common.nix @@ -196,6 +196,7 @@ in { extraHosts = '' ::1 host.docker.internal 127.0.0.1 host.docker.internal + ::1 host.containers.internal 127.0.0.1 host.containers.internal ''; diff --git a/nixos/foxtrot.nix b/nixos/foxtrot.nix index 18768b4..590de12 100644 --- a/nixos/foxtrot.nix +++ b/nixos/foxtrot.nix @@ -189,6 +189,10 @@ in { powerOnBoot = false; }; powerManagement.cpuFreqGovernor = "ondemand"; + powerManagement.resumeCommands = '' + modprobe -rv mt7921e + modprobe -v mt7921e + ''; services.power-profiles-daemon = { enable = true;