From 6ade087f38e1ed86abde7fa9264d937c41a1a387 Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Fri, 3 Nov 2023 12:59:36 +0100 Subject: [PATCH] add hardware config (yodaHedgehog) --- template/hardware-configs/yodaHedgehog.nix | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 template/hardware-configs/yodaHedgehog.nix diff --git a/template/hardware-configs/yodaHedgehog.nix b/template/hardware-configs/yodaHedgehog.nix new file mode 100644 index 0000000..4c84e9b --- /dev/null +++ b/template/hardware-configs/yodaHedgehog.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 = [ "ahci" "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.enp3s0.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +}