add btrfs swap support

This commit is contained in:
Aleksander Heintz authored and mergify[bot] committed 2023-11-08 22:36:40 +00:00
1 parent 548962c50b
commit 72bc152626
6 files changed
+84 -1

No files matched your search

+19
View File
@@ -45,6 +45,25 @@
};
# This subvolume will be created but not mounted
"/test" = { };
# Subvolume for the swapfile
"/swap" = {
mountpoint = "/.swapvol";
swap = {
swapfile.size = "20M";
swapfile2.size = "20M";
swapfile2.path = "rel-path";
};
};
};
mountpoint = "/partition-root";
swap = {
swapfile = {
size = "20M";
};
swapfile1 = {
size = "20M";
};
};
};
};
+4
View File
@@ -48,6 +48,10 @@
mountpoint = "/nix";
mountOptions = [ "compress=zstd" "noatime" ];
};
"/swap" = {
mountpoint = "/.swapvol";
swap.swapfile.size = "20M";
};
};
};
};