hosts/ni: update hardware and networking setup

This commit is contained in:
Gabriel Arazas 2024-01-20 11:30:10 +08:00
parent 5acba7ba41
commit 40895e71c3
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
2 changed files with 3 additions and 6 deletions

View File

@ -9,7 +9,7 @@
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.initrd.availableKernelModules =
[ "xhci_pci" "ahci" "nvme" "usb_storage" "uas" "sd_mod" ];
[ "xhci_pci" "ahci" "nvme" "usbhid" "uas" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
@ -22,7 +22,7 @@
boot.loader.efi.canTouchEfiVariables = true;
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.cpu.intel.updateMicrocode = lib.mkDefault true;
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
services.btrfs.autoScrub = {
enable = true;

View File

@ -128,10 +128,7 @@ in
# We'll configure individual network interfaces to use DHCP since it can
# fail wait-online-interface.service.
networking.useDHCP = false;
networking.dhcpcd.enable = false;
networking.interfaces.enp1s0.useDHCP = true;
networking.interfaces.wlp2s0.useDHCP = true;
networking.useDHCP = lib.mkDefault true;
# Configure the networking bonds.
networking.bonds.bond0 = {