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 = {
type = "luks";
name = "root";
#keyFile = "/root/password"; # keyFile contains the key for encryption, not the passphrase to unlock the key
content = {
type = "zfs";
pool = "zroot";
@ -68,7 +67,6 @@ in
content = {
type = "luks";
name = "raid_${name}";
#keyFile = "/root/password"; # keyFile contains the key for encryption, not the passphrase to unlock the key
content = {
type = "zfs";
pool = "zraid";
@ -101,9 +99,7 @@ in
};
};
# use boot.zfs.extraPools = [ "zraid" ] to mount this pool during boot time.
# 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}
# `zpool import -f zraid` once on the first boot and reboot
zraid = {
type = "zpool";
mode = "raidz2";