From 094b98351a9365611a01ed3b56213885255ed159 Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Tue, 2 May 2023 19:22:17 +0200 Subject: [PATCH] configure zfs auto-snapshot --- nixos/machines/chungus/disko-config.nix | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/nixos/machines/chungus/disko-config.nix b/nixos/machines/chungus/disko-config.nix index 05b7a71..2ebd6a8 100644 --- a/nixos/machines/chungus/disko-config.nix +++ b/nixos/machines/chungus/disko-config.nix @@ -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";