From c580a9ec2a1a43a682117eca41c3867e8771117a Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sun, 20 Dec 2020 15:14:09 +0530 Subject: Adds sound module + minor changes --- hardware-configuration.nix | 18 ++++++++++++++---- 1 file 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"; + }; } -- cgit v1.3.1