From d9d83983a421c4ffb1bf295b0018e538f67a5932 Mon Sep 17 00:00:00 2001 From: Jet Date: Sun, 31 May 2026 12:11:05 -0700 Subject: [PATCH] feat: add framework-work hardware configuration --- .../framework-work/hardware-configuration.nix | 56 +++++++------------ 1 file changed, 21 insertions(+), 35 deletions(-) diff --git a/hosts/framework-work/hardware-configuration.nix b/hosts/framework-work/hardware-configuration.nix index 4b7e6cc..3835f54 100644 --- a/hosts/framework-work/hardware-configuration.nix +++ b/hosts/framework-work/hardware-configuration.nix @@ -1,48 +1,34 @@ -{ - config, - lib, - pkgs, - 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 = [ - "nvme" - "xhci_pci" - "thunderbolt" - "usb_storage" - "sd_mod" - ]; + boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" ]; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-amd" ]; boot.extraModulePackages = [ ]; - boot.initrd.luks.devices.cryptroot = { - device = "/dev/disk/by-partuuid/90aab143-4d2f-4a77-b08e-95fad9ee08af"; - allowDiscards = true; - }; + fileSystems."/" = + { device = "/dev/mapper/luks-ae39dec6-3a9a-4822-9b46-a71f776dca5d"; + fsType = "ext4"; + }; - fileSystems."/" = { - device = "/dev/mapper/cryptroot"; - fsType = "ext4"; - options = [ "noatime" ]; - }; + boot.initrd.luks.devices."luks-ae39dec6-3a9a-4822-9b46-a71f776dca5d".device = "/dev/disk/by-uuid/ae39dec6-3a9a-4822-9b46-a71f776dca5d"; - fileSystems."/boot" = { - device = "/dev/disk/by-uuid/D21C-F860"; - fsType = "vfat"; - options = [ - "fmask=0077" - "dmask=0077" + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/82A5-BE9B"; + fsType = "vfat"; + options = [ "fmask=0077" "dmask=0077" ]; + }; + + swapDevices = + [ { device = "/dev/mapper/luks-f224835a-588d-4ad4-921c-a73e952da0ea"; } ]; - }; - - swapDevices = [ ]; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;