38 lines
1,021 B
Nix
38 lines
1,021 B
Nix
{
|
|
# Kernel modules.
|
|
boot.initrd.availableKernelModules = ["xhci_pci" "nvme" "usb_storage" "sd_mod"];
|
|
boot.kernelModules = ["kvm-intel"];
|
|
|
|
# Full disk encryption.
|
|
boot.initrd.luks.devices."nvme0n1p2_crypt".device = "/dev/disk/by-uuid/7196bd89-099f-4e9e-80e5-3d6d555272b1";
|
|
|
|
# Root filesystem.
|
|
fileSystems."/" = {
|
|
device = "/dev/disk/by-uuid/bea34866-903b-460e-abff-c817e06891c7";
|
|
fsType = "btrfs";
|
|
options = ["subvol=root"];
|
|
};
|
|
|
|
# Nix directory.
|
|
fileSystems."/nix" = {
|
|
device = "/dev/disk/by-uuid/bea34866-903b-460e-abff-c817e06891c7";
|
|
fsType = "btrfs";
|
|
options = ["subvol=nix"];
|
|
};
|
|
|
|
# Home directory.
|
|
fileSystems."/home" = {
|
|
device = "/dev/disk/by-uuid/bea34866-903b-460e-abff-c817e06891c7";
|
|
fsType = "btrfs";
|
|
options = ["subvol=home"];
|
|
};
|
|
|
|
# Swap.
|
|
fileSystems."/swap" = {
|
|
device = "/dev/disk/by-uuid/bea34866-903b-460e-abff-c817e06891c7";
|
|
fsType = "btrfs";
|
|
options = ["subvol=swap"];
|
|
};
|
|
|
|
swapDevices = [{device = "/swap/swapfile";}];
|
|
}
|