nixos-configuration/machines/hafnium/hardware-configuration.nix
2021-11-17 16:08:19 +00:00

45 lines
919 B
Nix

{ modulesPath, ... }:
{
imports = [
"${modulesPath}/installer/scan/not-detected.nix"
];
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/f4be9071-2532-4272-b1f0-c54e868c0ba2";
fsType = "ext2";
};
"/boot/efi" = {
device = "/dev/disk/by-uuid/529D-EB74";
fsType = "vfat";
};
};
boot.initrd.luks.devices.cryptroot = {
device = "/dev/disk/by-uuid/d9b120c1-5e80-4893-92fe-497e5b44c25b";
allowDiscards = true;
};
}