From 67c322af7c0b6460f549d11ce664017708a8e0c7 Mon Sep 17 00:00:00 2001 From: Chris Wong Date: Tue, 6 Oct 2026 19:19:36 +0100 Subject: [PATCH] updated hardware config for frameworkx --- hosts/framework/hardware-configuration.nix | 44 +++++++++++++++++----- 1 file changed, 34 insertions(+), 10 deletions(-) diff --git a/hosts/framework/hardware-configuration.nix b/hosts/framework/hardware-configuration.nix index e10ae98..0df7b2e 100644 --- a/hosts/framework/hardware-configuration.nix +++ b/hosts/framework/hardware-configuration.nix @@ -1,12 +1,36 @@ -# Replace this entire file with /mnt/etc/nixos/hardware-configuration.nix -# after running: sudo nixos-generate-config --root /mnt -# No disks, UUIDs, CPU vendor, or GPU model are guessed here. -{ ... }: +# 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, ... }: + { - assertions = [ - { - assertion = false; - message = "Framework hardware configuration is missing. Run nixos-generate-config --root /mnt and replace hosts/framework/hardware-configuration.nix with the generated file."; - } - ]; + imports = + [ (modulesPath + "/installer/scan/not-detected.nix") + ]; + + boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/57d0089f-2155-4549-b147-17a905fd8f61"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/0C32-725D"; + fsType = "vfat"; + options = [ "fmask=0022" "dmask=0022" ]; + }; + + fileSystems."/home" = + { device = "tookland/home"; + fsType = "zfs"; + }; + + swapDevices = [ ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; }