more config for pleniscenta with luks

This commit is contained in:
twoneis 2024-06-02 17:31:34 +02:00
parent 4cd0433466
commit acc34593af

View file

@ -3,6 +3,7 @@
initrd = { initrd = {
availableKernelModules = [ "ahci" "xhci_pci" "ums_realtek" "usbhid" "usb_storage" "sd_mod" "sdhci_pci" ]; availableKernelModules = [ "ahci" "xhci_pci" "ums_realtek" "usbhid" "usb_storage" "sd_mod" "sdhci_pci" ];
kernelModules = [ ]; kernelModules = [ ];
luks.devices.cryptroot.device = "/dev/disk/by-uuid/XXXX-XXXX";
}; };
kernelModules = [ "kvm-intel" ]; kernelModules = [ "kvm-intel" ];
extraModulePackages = [ ]; extraModulePackages = [ ];
@ -14,20 +15,22 @@
fsType = "vfat"; fsType = "vfat";
}; };
"/" = { "/" = {
device = "/dev/disk/by-uuid/4bd7389a-464c-4bd1-b515-7f578400d4ea"; device = "/dev/disk/by-uuid/";
fsType = "btrfs"; fsType = "btrfs";
options = [ "subvol=root" "compress=zstd" "noatime" ]; options = [ "subvol=root" "compress=zstd" "noatime" ];
}; };
"/nix" = { "/nix" = {
device = "/dev/disk/by-uuid/4bd7389a-464c-4bd1-b515-7f578400d4ea";
fsType = "btrfs"; fsType = "btrfs";
options = [ "subvol=nix" "compress=zstd" "noatime" ]; options = [ "subvol=nix" "compress=zstd" "noatime" ];
}; };
"/persist" = { "/persist" = {
device = "/dev/disk/by-uuid/4bd7389a-464c-4bd1-b515-7f578400d4ea";
fsType = "btrfs"; fsType = "btrfs";
options = [ "subvol=persist" "compress=zstd" "noatime" ]; options = [ "subvol=persist" "compress=zstd" "noatime" ];
}; };
"/swap" = {
fsType = "btrfs";
options = [ "subvol=swap" "noatime" ];
};
}; };
swapDevices = [ { device = "/swap/swapfile"; } ]; swapDevices = [ { device = "/swap/swapfile"; } ];