From bfea5b1a875b8f808c1be647305ceab24ddc707c Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Sat, 30 Nov 2024 21:56:25 +0100 Subject: [PATCH] machines/bingus/hardware-configuration.nix: update hardware configuration --- machines/bingus/hardware-configuration.nix | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 machines/bingus/hardware-configuration.nix diff --git a/machines/bingus/hardware-configuration.nix b/machines/bingus/hardware-configuration.nix new file mode 100644 index 0000000..2552244 --- /dev/null +++ b/machines/bingus/hardware-configuration.nix @@ -0,0 +1,25 @@ +# Do not modify this file! It was generated by ‘nixos-generate-config’ +# and may be overwritten by future invocations. Please make changes +# to /etc/nixos/configuration.nix instead. +{ config, lib, pkgs, modulesPath, ... }: + +{ + imports = + [ (modulesPath + "/installer/scan/not-detected.nix") + ]; + + boot.initrd.availableKernelModules = [ "ehci_pci" "ata_piix" "xhci_pci" "usbhid" "usb_storage" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + # Enables DHCP on each ethernet and wireless interface. In case of scripted networking + # (the default) this is the recommended approach. When using systemd-networkd it's + # still possible to use this option, but it's recommended to use it in conjunction + # with explicit per-interface declarations with `networking.interfaces..useDHCP`. + networking.useDHCP = lib.mkDefault true; + # networking.interfaces.enp4s0.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +}