Enable regulatory domains for wifi

This commit is contained in:
Daniel Flanagan 2023-11-17 05:32:47 -06:00
parent 6b9878ae4c
commit cd26723a0c
Signed by: lytedev
GPG key ID: 5B2020A0F9921EF4

View file

@ -26,6 +26,8 @@
# TODO: hibernation? does sleep suffice? # TODO: hibernation? does sleep suffice?
hardware.wirelessRegulatoryDatabase = true;
boot = { boot = {
loader = { loader = {
efi.canTouchEfiVariables = true; 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"]; kernelParams = ["amdgpu.sg_display=0" "acpi_osi=\"!Windows 2020\"" "nvme.noacpi=1" "rtc_cmos.use_acpi_alarm=1"];
initrd.availableKernelModules = ["xhci_pci" "nvme" "thunderbolt"]; initrd.availableKernelModules = ["xhci_pci" "nvme" "thunderbolt"];
kernelModules = ["kvm-amd"]; kernelModules = ["kvm-amd"];
extraModprobeConfig = ''
options cfg80211 ieee80211_regdom="US"
'';
}; };
hardware.bluetooth.enable = true; hardware.bluetooth.enable = true;
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";