From 0e9f6d890edf1fee11125f87dcc7f12d973cbe38 Mon Sep 17 00:00:00 2001 From: "K. Isom" Date: Wed, 1 Apr 2026 20:32:08 -0700 Subject: [PATCH] straylight hardware --- hw/straylight/hardware-configuration.nix | 33 ++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 hw/straylight/hardware-configuration.nix diff --git a/hw/straylight/hardware-configuration.nix b/hw/straylight/hardware-configuration.nix new file mode 100644 index 0000000..d7504bb --- /dev/null +++ b/hw/straylight/hardware-configuration.nix @@ -0,0 +1,33 @@ +# 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 = [ "nvme" "xhci_pci" "thunderbolt" "usbhid" "usb_storage" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/mapper/luks-922e2c13-35bc-40de-a829-716b9368e4a7"; + fsType = "ext4"; + }; + + boot.initrd.luks.devices."luks-922e2c13-35bc-40de-a829-716b9368e4a7".device = "/dev/disk/by-uuid/922e2c13-35bc-40de-a829-716b9368e4a7"; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/9BAD-52AA"; + fsType = "vfat"; + options = [ "fmask=0077" "dmask=0077" ]; + }; + + swapDevices = [ ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +}