setup /tmp

This commit is contained in:
Adithya 2023-04-07 19:52:09 +05:30
parent c7fb0d7546
commit 9ebb6123e3
Signed by: adtya
GPG key ID: 48FC9915FFD326D0

View file

@ -1,5 +1,4 @@
{ ... }: {
boot.tmpOnTmpfs = true;
fileSystems = {
"/" = {
device = "tmpfs";
@ -19,6 +18,12 @@
options = [ "subvol=/@persist" "compress-force=zstd" ];
neededForBoot = true;
};
"/tmp" = {
device = "/dev/vg0/system";
fsType = "btrfs";
options = [ "subvol=/@tmp" "compress-force=zstd" "nosuid" "nodev" ];
neededForBoot = true;
};
"/mnt/system" = {
device = "/dev/vg0/system";
fsType = "btrfs";