aboutsummaryrefslogtreecommitdiff
path: root/hardware-configuration.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hardware-configuration.nix')
-rw-r--r--hardware-configuration.nix18
1 files changed, 14 insertions, 4 deletions
diff --git a/hardware-configuration.nix b/hardware-configuration.nix
index 7316e6b..4f35056 100644
--- a/hardware-configuration.nix
+++ b/hardware-configuration.nix
@@ -9,23 +9,29 @@
];
boot.initrd = {
- availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" ];
+ availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" "wl" ];
kernelModules = [ "wl" ];
};
boot.kernelModules = ["kvm-intel" "wl"];
boot.kernelParams = [ "i8042.nopnp=1" "pci=nocrs" "quiet" "splash" ];
- boot.extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ];
+ boot.extraModulePackages = [];
+ boot.extraModprobeConfig = ''
+ options snd slots=snd-hda-intel
+ '';
hardware = {
- enableRedistributableFirmware = true;
+ enableAllFirmware = true;
+ cpu.intel.updateMicrocode = true;
firmware = with pkgs; [ wireless-regdb ];
};
+ # Bootloader
boot.loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
+ # File system
fileSystems = {
"/" = {
device = "/dev/disk/by-label/nixos";
@@ -38,5 +44,9 @@
};
swapDevices = [ { device = "/dev/disk/by-label/swap"; } ];
- powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
+
+ powerManagement = {
+ enable = true;
+ cpuFreqGovernor = lib.mkDefault "powersave";
+ };
}