44 lines
887 B
Nix
44 lines
887 B
Nix
{ modulesPath, ... }:
|
|
|
|
{
|
|
imports = [
|
|
"${modulesPath}/installer/scan/not-detected.nix"
|
|
];
|
|
|
|
hardware.cpu.amd.updateMicrocode = true;
|
|
|
|
boot = {
|
|
initrd.availableKernelModules = [
|
|
"nvme"
|
|
"ehci_pci"
|
|
"xhci_pci"
|
|
"usb_storage"
|
|
"sd_mod"
|
|
"rtsx_pci_sdmmc"
|
|
];
|
|
kernelModules = [ "kvm-amd" ];
|
|
};
|
|
|
|
fileSystems = {
|
|
"/" = {
|
|
device = "/dev/disk/by-uuid/b86310f5-fe3d-4b4d-bc02-ab0d7e9297cf";
|
|
fsType = "btrfs";
|
|
options = [
|
|
"discard=async"
|
|
"noatime"
|
|
"subvol=/nixos"
|
|
"compress=zstd:6"
|
|
];
|
|
};
|
|
"/boot" = {
|
|
device = "/dev/disk/by-uuid/564E-26B4";
|
|
fsType = "vfat";
|
|
options = [ "nodev" "nosuid" "noexec" ];
|
|
};
|
|
};
|
|
|
|
boot.initrd.luks.devices.cryptroot = {
|
|
device = "/dev/disk/by-uuid/d9b120c1-5e80-4893-92fe-497e5b44c25b";
|
|
allowDiscards = true;
|
|
};
|
|
}
|