From f0a583a3cbf2bbfc540a597e3f6f589d7f94ebe3 Mon Sep 17 00:00:00 2001 From: Tyler Starr Date: Sun, 22 Jun 2025 22:26:02 -0700 Subject: [PATCH] add hardware for stormwalker --- provision/hosts/stormwalker/hardware.nix | 41 ++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 provision/hosts/stormwalker/hardware.nix diff --git a/provision/hosts/stormwalker/hardware.nix b/provision/hosts/stormwalker/hardware.nix new file mode 100644 index 00000000..d59d6f26 --- /dev/null +++ b/provision/hosts/stormwalker/hardware.nix @@ -0,0 +1,41 @@ +# 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 = [ "xhci_pci" "nvme" "usb_storage" "usbhid" "sd_mod" "sdhci_pci" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/62d60ed3-7aa0-46fa-84a0-8f45fa2e5b0e"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/9AC3-C7F0"; + fsType = "vfat"; + options = [ "fmask=0077" "dmask=0077" ]; + }; + + swapDevices = + [ { device = "/dev/disk/by-uuid/eab0b0a1-37ef-406b-ae2d-39e5cda0ff2f"; } + ]; + + # 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.enp1s0.useDHCP = lib.mkDefault true; + # networking.interfaces.wlp0s20f3.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +}