Initial NixOS flake config

This commit is contained in:
installer
2026-09-24 21:34:34 -05:00
commit 4cd1f88f06
13 changed files with 1231 additions and 0 deletions
+42
View File
@@ -0,0 +1,42 @@
# Hardware configuration for Corsair MP600 PRO LPX 2 TB NVMe (A5JQB34902JR7K)
# Generated during migration from Framework 250 GB Expansion Card.
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usbhid" "uas" "sd_mod" ];
boot.initrd.kernelModules = [ "dm-snapshot" ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
# LUKS on NVMe Partition 2
boot.initrd.luks.devices."cryptroot" = {
device = "/dev/disk/by-uuid/ea31deed-6dbf-4420-ab6b-dd076193f50b";
preLVM = true;
allowDiscards = true;
};
# Hibernation resume device
boot.resumeDevice = "/dev/vg_nixos/swap";
fileSystems."/" =
{ device = "/dev/vg_nixos/root";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/12CE-A600";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices =
[ { device = "/dev/vg_nixos/swap"; }
];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}