diff --git a/hosts/haze/default.nix b/hosts/haze/default.nix index bfbd790..dc1a273 100644 --- a/hosts/haze/default.nix +++ b/hosts/haze/default.nix @@ -9,6 +9,7 @@ inputs.impermanence.nixosModules.impermanence ./boot.nix ./disk.nix + ./hardware.nix ./network.nix ./sway.nix ./syncthing.nix diff --git a/hosts/haze/hardware.nix b/hosts/haze/hardware.nix new file mode 100644 index 0000000..efeeffb --- /dev/null +++ b/hosts/haze/hardware.nix @@ -0,0 +1,11 @@ +{ config, ... }: +{ + nixpkgs.hostPlatform = "x86_64-linux"; + + hardware.enableRedistributableFirmware = true; + + boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "vmd" "nvme" "usb_storage" "sd_mod" "rtsx_usb_sdmmc" ]; + boot.kernelModules = [ "kvm-intel" ]; + + hardware.cpu.intel.updateMicrocode = config.hardware.enableRedistributableFirmware; +} diff --git a/hosts/haze/network.nix b/hosts/haze/network.nix index 743858f..0bec490 100644 --- a/hosts/haze/network.nix +++ b/hosts/haze/network.nix @@ -4,5 +4,7 @@ wifi.powersave = true; }; + networking.useDHCP = true; + users.users."rpqt".extraGroups = [ "networkmanager" ]; }