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 @@
{
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/cryptroot";
fileSystems."/" =
{ device = "/dev/mapper/luks-ae39dec6-3a9a-4822-9b46-a71f776dca5d";
fsType = "ext4";
options = [ "noatime" ];
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/D21C-F860";
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/82A5-BE9B";
fsType = "vfat";
options = [
"fmask=0077"
"dmask=0077"
];
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices = [ ];
swapDevices =
[ { device = "/dev/mapper/luks-f224835a-588d-4ad4-921c-a73e952da0ea"; }
];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;