From 6ea400be53ba1778e3350513e99670c4bd03fc56 Mon Sep 17 00:00:00 2001 From: Lyra Thorpe Date: Sat, 29 Aug 2026 19:33:54 +0100 Subject: [PATCH] feat(console): add the real hardware-configuration.nix replace the generated placeholder now the system boots --- hosts/Console/hardware-configuration.nix | 60 +++++++----------------- 1 file changed, 17 insertions(+), 43 deletions(-) diff --git a/hosts/Console/hardware-configuration.nix b/hosts/Console/hardware-configuration.nix index b935792..c947f40 100644 --- a/hosts/Console/hardware-configuration.nix +++ b/hosts/Console/hardware-configuration.nix @@ -1,57 +1,31 @@ -# PLACEHOLDER -- not generated by nixos-generate-config. -# -# This host has not been installed yet, so there is no real hardware scan to -# commit. The values below are the conventional defaults for a Haswell UEFI -# desktop and assume the install labels its partitions `nixos` (root, ext4) and -# `BOOT` (ESP, vfat) -- see docs/hosts/console.md. They exist so the flake -# evaluates in CI; they are not a description of the actual machine. -# -# Replace this whole file with the output of `nixos-generate-config` run on the -# machine, and commit that. If the labels do not match, the boot fails loudly on -# a missing device rather than touching the wrong disk. -{ - config, - lib, - modulesPath, - ... -}: +# 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") - ]; + imports = + [ (modulesPath + "/installer/scan/not-detected.nix") + ]; - boot.initrd.availableKernelModules = [ - "xhci_pci" - "ehci_pci" - "ahci" - "nvme" - "usb_storage" - "usbhid" - "sd_mod" - "sr_mod" - ]; + boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "sr_mod" ]; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; - fileSystems."/" = { - device = "/dev/disk/by-label/nixos"; - fsType = "ext4"; - }; + fileSystems."/" = + { device = "/dev/disk/by-uuid/2ab976ad-ba88-4d1b-8d70-5a114a4ed024"; + fsType = "ext4"; + }; - fileSystems."/boot" = { - device = "/dev/disk/by-label/BOOT"; - fsType = "vfat"; - options = [ - "fmask=0022" - "dmask=0022" - ]; - }; + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/32FB-6BEE"; + fsType = "vfat"; + options = [ "fmask=0022" "dmask=0022" ]; + }; swapDevices = [ ]; - networking.useDHCP = lib.mkDefault true; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; }