From cd26723a0c351165cf0ddbd93fc1755a9d059173 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Fri, 17 Nov 2023 05:32:47 -0600 Subject: [PATCH 1/2] Enable regulatory domains for wifi --- nixos/foxtrot/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nixos/foxtrot/default.nix b/nixos/foxtrot/default.nix index e625a04..1ce71ce 100644 --- a/nixos/foxtrot/default.nix +++ b/nixos/foxtrot/default.nix @@ -26,6 +26,8 @@ # TODO: hibernation? does sleep suffice? + hardware.wirelessRegulatoryDatabase = true; + boot = { loader = { efi.canTouchEfiVariables = true; @@ -36,6 +38,9 @@ kernelParams = ["amdgpu.sg_display=0" "acpi_osi=\"!Windows 2020\"" "nvme.noacpi=1" "rtc_cmos.use_acpi_alarm=1"]; initrd.availableKernelModules = ["xhci_pci" "nvme" "thunderbolt"]; kernelModules = ["kvm-amd"]; + extraModprobeConfig = '' + options cfg80211 ieee80211_regdom="US" + ''; }; hardware.bluetooth.enable = true; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; From dd9e35b240b6ddd050a59fcfb6d93d9df8427e48 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Fri, 17 Nov 2023 05:36:19 -0600 Subject: [PATCH 2/2] Enable power profiles daemon --- nixos/foxtrot/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nixos/foxtrot/default.nix b/nixos/foxtrot/default.nix index 7e89fe7..4b47e44 100644 --- a/nixos/foxtrot/default.nix +++ b/nixos/foxtrot/default.nix @@ -55,6 +55,9 @@ # tod.enable = true; # tod.driver = pkgs.libfprint-2-tod1-goodix; }; + services.power-profiles-daemon = { + enable = true; + }; services.tlp = { enable = false; settings = {