diff options
| author | Akshay Nair <phenax5@gmail.com> | 2020-12-20 15:14:09 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2020-12-20 15:14:09 +0530 |
| commit | c580a9ec2a1a43a682117eca41c3867e8771117a (patch) | |
| tree | 1ea93483ba68c05cd53169b009a5cb650ba14b26 /hardware-configuration.nix | |
| parent | 27cb3d41df22d0b8984ec8caa91b6f383fd354d4 (diff) | |
| download | nixos-config-c580a9ec2a1a43a682117eca41c3867e8771117a.tar.gz nixos-config-c580a9ec2a1a43a682117eca41c3867e8771117a.zip | |
Adds sound module + minor changes
Diffstat (limited to '')
| -rw-r--r-- | hardware-configuration.nix | 18 |
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"; + }; } |
