feat: add framework-work hardware configuration

This commit is contained in:
Jet 2026-05-31 12:11:05 -07:00
parent 951f24a498
commit d9d83983a4
No known key found for this signature in database

View file

@ -1,48 +1,34 @@
{ # Do not modify this file! It was generated by nixos-generate-config
config, # and may be overwritten by future invocations. Please make changes
lib, # to /etc/nixos/configuration.nix instead.
pkgs, { config, lib, pkgs, modulesPath, ... }:
modulesPath,
...
}:
{ {
imports = [ imports =
(modulesPath + "/installer/scan/not-detected.nix") [ (modulesPath + "/installer/scan/not-detected.nix")
]; ];
boot.initrd.availableKernelModules = [ boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" ];
"nvme"
"xhci_pci"
"thunderbolt"
"usb_storage"
"sd_mod"
];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ]; boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
boot.initrd.luks.devices.cryptroot = { fileSystems."/" =
device = "/dev/disk/by-partuuid/90aab143-4d2f-4a77-b08e-95fad9ee08af"; { device = "/dev/mapper/luks-ae39dec6-3a9a-4822-9b46-a71f776dca5d";
allowDiscards = true;
};
fileSystems."/" = {
device = "/dev/mapper/cryptroot";
fsType = "ext4"; fsType = "ext4";
options = [ "noatime" ];
}; };
fileSystems."/boot" = { boot.initrd.luks.devices."luks-ae39dec6-3a9a-4822-9b46-a71f776dca5d".device = "/dev/disk/by-uuid/ae39dec6-3a9a-4822-9b46-a71f776dca5d";
device = "/dev/disk/by-uuid/D21C-F860";
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/82A5-BE9B";
fsType = "vfat"; fsType = "vfat";
options = [ options = [ "fmask=0077" "dmask=0077" ];
"fmask=0077"
"dmask=0077"
];
}; };
swapDevices = [ ]; swapDevices =
[ { device = "/dev/mapper/luks-f224835a-588d-4ad4-921c-a73e952da0ea"; }
];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;