From 364220985b73b68366949bed43685dce8a70e07a Mon Sep 17 00:00:00 2001 From: ChUrl Date: Mon, 8 Aug 2022 15:27:36 +0200 Subject: [PATCH] enable redistributablefirmware for laptop --- nixos/hardware-configuration-nixtop.nix | 37 ++++++++++++++----------- 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/nixos/hardware-configuration-nixtop.nix b/nixos/hardware-configuration-nixtop.nix index a984080b..49d3e3d8 100644 --- a/nixos/hardware-configuration-nixtop.nix +++ b/nixos/hardware-configuration-nixtop.nix @@ -4,24 +4,26 @@ { config, lib, pkgs, modulesPath, ... }: { - imports = - [ (modulesPath + "/installer/scan/not-detected.nix") - ]; + imports = [ + (modulesPath + "/installer/scan/not-detected.nix") + ]; - boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ]; - boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ "kvm-intel" ]; - boot.extraModulePackages = [ ]; + boot = { + initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ]; + initrd.kernelModules = [ ]; + kernelModules = [ "kvm-intel" ]; + extraModulePackages = [ ]; + }; - fileSystems."/" = - { device = "/dev/disk/by-uuid/35fc016b-7fa2-42be-9d24-407620e29a43"; - fsType = "ext4"; - }; + fileSystems."/" = { + device = "/dev/disk/by-uuid/35fc016b-7fa2-42be-9d24-407620e29a43"; + fsType = "ext4"; + }; - fileSystems."/boot/efi" = - { device = "/dev/disk/by-uuid/E295-0EBB"; - fsType = "vfat"; - }; + fileSystems."/boot/efi" = { + device = "/dev/disk/by-uuid/E295-0EBB"; + fsType = "vfat"; + }; swapDevices = [ ]; @@ -34,5 +36,8 @@ # networking.interfaces.wlp3s0.useDHCP = lib.mkDefault true; # networking.interfaces.wwp0s20u4.useDHCP = lib.mkDefault true; - hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; + hardware = { + enableRedistributableFirmware = true; + cpu.intel.updateMicrocode = true; + }; }