configure zfs auto-snapshot

This commit is contained in:
Ingolf Wagner 2023-05-02 19:22:17 +02:00
parent 86b40990b6
commit 094b98351a
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B

View file

@ -43,7 +43,6 @@ in
content = { content = {
type = "luks"; type = "luks";
name = "root"; name = "root";
#keyFile = "/root/password"; # keyFile contains the key for encryption, not the passphrase to unlock the key
content = { content = {
type = "zfs"; type = "zfs";
pool = "zroot"; pool = "zroot";
@ -68,7 +67,6 @@ in
content = { content = {
type = "luks"; type = "luks";
name = "raid_${name}"; name = "raid_${name}";
#keyFile = "/root/password"; # keyFile contains the key for encryption, not the passphrase to unlock the key
content = { content = {
type = "zfs"; type = "zfs";
pool = "zraid"; pool = "zraid";
@ -101,9 +99,7 @@ in
}; };
}; };
# use boot.zfs.extraPools = [ "zraid" ] to mount this pool during boot time. # `zpool import -f zraid` once on the first boot and reboot
# or `zpool import -f zraid` once on the first boot and reboot
# you have to run `zpool import -f zraid` every time you rename your networking.{hostname,hostId}
zraid = { zraid = {
type = "zpool"; type = "zpool";
mode = "raidz2"; mode = "raidz2";