mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-12 06:19:00 +00:00
hosts/ni: update hardware and networking setup
This commit is contained in:
parent
5acba7ba41
commit
40895e71c3
@ -9,7 +9,7 @@
|
|||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
|
||||||
boot.initrd.availableKernelModules =
|
boot.initrd.availableKernelModules =
|
||||||
[ "xhci_pci" "ahci" "nvme" "usb_storage" "uas" "sd_mod" ];
|
[ "xhci_pci" "ahci" "nvme" "usbhid" "uas" "sd_mod" ];
|
||||||
boot.initrd.kernelModules = [ ];
|
boot.initrd.kernelModules = [ ];
|
||||||
boot.kernelModules = [ "kvm-intel" ];
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
@ -22,7 +22,7 @@
|
|||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault true;
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
|
||||||
services.btrfs.autoScrub = {
|
services.btrfs.autoScrub = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -128,10 +128,7 @@ in
|
|||||||
|
|
||||||
# We'll configure individual network interfaces to use DHCP since it can
|
# We'll configure individual network interfaces to use DHCP since it can
|
||||||
# fail wait-online-interface.service.
|
# fail wait-online-interface.service.
|
||||||
networking.useDHCP = false;
|
networking.useDHCP = lib.mkDefault true;
|
||||||
networking.dhcpcd.enable = false;
|
|
||||||
networking.interfaces.enp1s0.useDHCP = true;
|
|
||||||
networking.interfaces.wlp2s0.useDHCP = true;
|
|
||||||
|
|
||||||
# Configure the networking bonds.
|
# Configure the networking bonds.
|
||||||
networking.bonds.bond0 = {
|
networking.bonds.bond0 = {
|
||||||
|
Loading…
Reference in New Issue
Block a user