summaryrefslogtreecommitdiff
path: root/modules/snorlax/disk-config.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/snorlax/disk-config.nix')
-rw-r--r--modules/snorlax/disk-config.nix21
1 files changed, 15 insertions, 6 deletions
diff --git a/modules/snorlax/disk-config.nix b/modules/snorlax/disk-config.nix
index 2dced50..39a9ccf 100644
--- a/modules/snorlax/disk-config.nix
+++ b/modules/snorlax/disk-config.nix
@@ -21,7 +21,7 @@
size = "100%";
content = {
type = "zfs";
- pool = "zroot";
+ pool = "data";
};
};
};
@@ -30,20 +30,29 @@
};
zpool = {
- zroot = {
+ data = {
type = "zpool";
+
rootFsOptions = {
compression = "zstd";
"com.sun:auto-snapshot" = "false";
};
- mountpoint = "/";
- postCreateHook = "zfs list -t snap -H -o name | grep -E '^zroot@blank$' || zfs snapshot zroot@blank";
datasets = {
- persist = {
+ "local/root" = {
+ type = "zfs_fs";
+ mountpoint = "/";
+ postCreateHook = "zfs list -t snap -H -o name | grep -E '^data/local/root@blank$' || zfs snapshot data/local/root@blank";
+ };
+
+ "local/nix" = {
+ type = "zfs_fs";
+ mountpoint = "/nix";
+ };
+
+ "safe/persist" = {
type = "zfs_fs";
mountpoint = "/persist";
- options."com.sun:auto-snapshot" = "true";
};
};
};