34 lines
627 B
Nix
34 lines
627 B
Nix
{ ... }:
|
|
|
|
{
|
|
boot.initrd.availableKernelModules = [
|
|
"aesni_intel"
|
|
"ahci"
|
|
"cryptd"
|
|
"sd_mod"
|
|
"usb_storage"
|
|
"xhci_pci"
|
|
];
|
|
boot.initrd.kernelModules = [ "dm-snapshot" ];
|
|
boot.kernelModules = [ "kvm-intel" ];
|
|
boot.extraModulePackages = [ ];
|
|
boot.kernelParams = [
|
|
"acpi_osi="
|
|
];
|
|
|
|
boot.initrd.luks.devices."cryptlvm".device = "/dev/sda2";
|
|
fileSystems."/" = {
|
|
device = "/dev/disk/by-label/nixos";
|
|
fsType = "ext4";
|
|
};
|
|
|
|
fileSystems."/boot" = {
|
|
device = "/dev/disk/by-label/BOOT";
|
|
fsType = "vfat";
|
|
};
|
|
|
|
swapDevices = [
|
|
{ device = "/dev/disk/by-label/swap"; }
|
|
];
|
|
}
|