Setup lappy for proper impermanance.

This commit is contained in:
jay
2025-07-07 00:29:09 +00:00
parent 1c70228703
commit ca885f29f2
2 changed files with 57 additions and 4 deletions

View File

@@ -48,6 +48,21 @@
"noatime"
];
};
"/root-blank" = {
mountOptions = [
"subvol=root-blank"
"nodatacow"
"noatime"
];
};
"/home" = {
mountpoint = "/home";
mountOptions = [
"subvol=home"
"compress=zstd"
"noatime"
];
};
"/nix" = {
mountpoint = "/nix";
mountOptions = [
@@ -72,6 +87,24 @@
"noatime"
];
};
"/lib" = {
mountpoint = "/var/lib";
mountOptions = [
"subvol=lib"
"compress=zstd"
"noatime"
];
};
"/persist/swap" = {
mountpoint = "/persist/swap";
mountOptions = [
"subvol=swap"
"noatime"
"nodatacow"
"compress=no"
];
swap.swapfile.size = "18G";
};
};
};
};
@@ -81,6 +114,7 @@
};
};
};
fileSystems."/nix/persist".neededForBoot = true;
fileSystems."/persist".neededForBoot = true;
fileSystems."/var/log".neededForBoot = true;
fileSystems."/var/lib".neededForBoot = true;
}