final-finally?

This commit is contained in:
Nicole Dresselhaus
2025-06-11 16:20:13 +02:00
parent cbd55764b7
commit f98a761db3
3 changed files with 47 additions and 21 deletions

View File

@ -11,7 +11,7 @@
type = "gpt";
partitions = {
ESP = {
size = "512M"; type = "EF00";
size = "1G"; type = "EF00";
content = {
type = "filesystem";
format = "vfat";
@ -20,11 +20,11 @@
};
};
rpool = {
size = "60G"; type = "BF00";
size = "60G";
content = { type = "zfs"; pool = "rpool"; };
};
tank = {
type = "BF00";
size = "100%";
content = { type = "zfs"; pool = "tank"; };
};
};
@ -34,20 +34,25 @@
zpool.rpool = {
type = "zpool";
options = { ashift = "12"; autotrim = "on"; };
rootFsOptions = {
compression = "zstd";
};
postCreateHook = "zfs list -t snapshot -H -o name | grep -E '^rpool@blank$' || zfs snapshot rpool@blank";
datasets = {
root = {
type = "zfs_fs";
mountpoint = "/";
options.compression = "zstd";
options = {
mountpoint = "legacy";
compression = "zstd";
"com.sun:auto-snapshot" = "false";
};
};
nix = {
type = "zfs_fs";
mountpoint = "legacy";
options.compression = "zstd";
};
home = {
type = "zfs_fs";
mountpoint = "legacy";
mountpoint = "/nix";
options.mountpoint = "legacy";
options.compression = "zstd";
};
};
@ -56,10 +61,20 @@
zpool.tank = {
type = "zpool";
options = { ashift = "12"; autotrim = "on"; };
datasets.media = {
type = "zfs_fs";
mountpoint = "/tank";
options.compression = "zstd";
postCreateHook = "zfs list -t snapshot -H -o name | grep -E '^tank@blank$' || zfs snapshot tank@blank";
datasets = {
media = {
type = "zfs_fs";
mountpoint = "/tank";
options.mountpoint = "legacy";
options.compression = "zstd";
};
home = {
type = "zfs_fs";
mountpoint = "/home";
options.mountpoint = "legacy";
options.compression = "zstd";
};
};
};
};