closer to example

This commit is contained in:
twoneis 2024-05-07 00:10:46 +02:00
parent 8a7092cc92
commit e68bf69975

View file

@ -7,8 +7,8 @@
content = { content = {
type = "gpt"; type = "gpt";
partitions = { partitions = {
efi = { ESP = {
size = "1G"; size = "64M";
type = "EF00"; type = "EF00";
priority = 0; priority = 0;
content = { content = {
@ -17,7 +17,7 @@
mountpoint = "/boot"; mountpoint = "/boot";
}; };
}; };
root = { zfs = {
end = "-16G"; end = "-16G";
content = { content = {
type = "zfs"; type = "zfs";
@ -40,7 +40,7 @@
content = { content = {
type = "gpt"; type = "gpt";
partitions = { partitions = {
store = { zfs = {
size = "100%"; size = "100%";
content = { content = {
type = "zfs"; type = "zfs";
@ -57,7 +57,6 @@
mode = ""; mode = "";
rootFsOptions = { rootFsOptions = {
compression = "zstd"; compression = "zstd";
canmount = "on";
"com.sun:auto-snapshot" = "false"; "com.sun:auto-snapshot" = "false";
}; };
mountpoint = "/"; mountpoint = "/";
@ -67,10 +66,12 @@
nix = { nix = {
type = "zfs_fs"; type = "zfs_fs";
mountpoint = "/nix"; mountpoint = "/nix";
options."com.sun:auto-snapshot" = "true";
}; };
persist = { persist = {
type = "zfs_fs"; type = "zfs_fs";
mountpoint = "/persist"; mountpoint = "/persist";
options."com.sun:auto-snapshot" = "true";
}; };
}; };
}; };
@ -79,7 +80,6 @@
mode = ""; mode = "";
rootFsOptions = { rootFsOptions = {
compression = "zstd"; compression = "zstd";
canmount = "on";
"com.sun:auto-snapshot" = "false"; "com.sun:auto-snapshot" = "false";
}; };
postCreateHook = "zfs list -t snapshot -H -o name | grep -E '^zroot@blank$' || zfs snapshot zroot@blank"; postCreateHook = "zfs list -t snapshot -H -o name | grep -E '^zroot@blank$' || zfs snapshot zroot@blank";