configuration.nix/system/hardware/filesystem.nix

33 lines
789 B
Nix
Raw Normal View History

2023-03-29 21:48:55 +05:30
{ ... }: {
2023-03-15 22:11:59 +05:30
boot.tmpOnTmpfs = true;
fileSystems = {
"/" = {
device = "tmpfs";
fsType = "tmpfs";
2023-03-29 21:48:55 +05:30
options = [ "defaults" "uid=0" "gid=0" "mode=0755" ];
2023-03-15 22:11:59 +05:30
neededForBoot = true;
};
"/nix" = {
device = "/dev/vg0/system";
fsType = "btrfs";
2023-03-29 21:48:55 +05:30
options = [ "subvol=/@nix" "compress-force=zstd" ];
2023-03-15 22:11:59 +05:30
neededForBoot = true;
};
"/persist" = {
device = "/dev/vg0/system";
fsType = "btrfs";
2023-03-29 21:48:55 +05:30
options = [ "subvol=/@persist" "compress-force=zstd" ];
2023-03-15 22:11:59 +05:30
neededForBoot = true;
};
"/mnt/system" = {
device = "/dev/vg0/system";
fsType = "btrfs";
2023-03-29 21:48:55 +05:30
options = [ "subvol=/" "compress-force=zstd" ];
2023-03-15 22:11:59 +05:30
};
"/boot" = {
device = "/dev/disk/by-partlabel/ESP";
fsType = "vfat";
};
};
}