2023-07-11 22:41:18 +05:30
|
|
|
_: {
|
2024-06-30 23:54:47 +05:30
|
|
|
boot = {
|
|
|
|
initrd = {
|
|
|
|
supportedFilesystems = [ "vfat" "btrfs" ];
|
|
|
|
luks.devices = {
|
|
|
|
luks0 = {
|
|
|
|
allowDiscards = true;
|
|
|
|
bypassWorkqueues = true;
|
|
|
|
device = "/dev/disk/by-partlabel/CRYPT";
|
|
|
|
preLVM = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
supportedFilesystems = [ "vfat" "ntfs" "exfat" "ext4" "btrfs" ];
|
|
|
|
resumeDevice = "/dev/vg0/swap";
|
|
|
|
};
|
2023-03-15 22:11:59 +05:30
|
|
|
fileSystems = {
|
|
|
|
"/" = {
|
2023-04-26 22:57:32 +05:30
|
|
|
device = "/dev/vg0/system";
|
|
|
|
fsType = "btrfs";
|
2023-11-04 16:12:45 +05:30
|
|
|
options = [ "subvol=@root" "compress-force=zstd" "noatime" ];
|
2023-03-15 22:11:59 +05:30
|
|
|
neededForBoot = true;
|
|
|
|
};
|
2023-04-26 22:57:32 +05:30
|
|
|
"/home" = {
|
|
|
|
device = "/dev/vg0/system";
|
|
|
|
fsType = "btrfs";
|
2023-11-04 16:12:45 +05:30
|
|
|
options = [ "subvol=@home" "compress-force=zstd" "noatime" ];
|
2023-04-26 22:57:32 +05:30
|
|
|
};
|
2023-03-15 22:11:59 +05:30
|
|
|
"/nix" = {
|
|
|
|
device = "/dev/vg0/system";
|
|
|
|
fsType = "btrfs";
|
2023-11-04 16:12:45 +05:30
|
|
|
options = [ "subvol=/@nix" "compress-force=zstd" "noatime" ];
|
2023-03-15 22:11:59 +05:30
|
|
|
neededForBoot = true;
|
|
|
|
};
|
|
|
|
"/persist" = {
|
|
|
|
device = "/dev/vg0/system";
|
|
|
|
fsType = "btrfs";
|
2023-11-04 16:12:45 +05:30
|
|
|
options = [ "subvol=/@persist" "compress-force=zstd" "noatime" ];
|
2023-03-15 22:11:59 +05:30
|
|
|
neededForBoot = true;
|
|
|
|
};
|
|
|
|
"/mnt/system" = {
|
|
|
|
device = "/dev/vg0/system";
|
|
|
|
fsType = "btrfs";
|
2023-11-04 16:12:45 +05:30
|
|
|
options = [ "subvol=/" "compress-force=zstd" "noatime" ];
|
2023-03-15 22:11:59 +05:30
|
|
|
};
|
|
|
|
"/boot" = {
|
|
|
|
device = "/dev/disk/by-partlabel/ESP";
|
|
|
|
fsType = "vfat";
|
|
|
|
};
|
|
|
|
};
|
2024-06-30 23:54:47 +05:30
|
|
|
|
|
|
|
swapDevices = [{ device = "/dev/vg0/swap"; }];
|
2023-03-15 22:11:59 +05:30
|
|
|
}
|