diff --git a/scripts/disko-config-chungus.nix b/nixos/machines/chungus/disko-config.nix similarity index 84% rename from scripts/disko-config-chungus.nix rename to nixos/machines/chungus/disko-config.nix index 8185751..9844f5d 100644 --- a/scripts/disko-config-chungus.nix +++ b/nixos/machines/chungus/disko-config.nix @@ -1,6 +1,7 @@ -# nix run github:nix-community/disko -- --mode create ./disko-config-chungus.nix --dry-run -# nix run github:nix-community/disko -- --mode mount ./disko-config-chungus.nix --dry-run -# nixos-generate-config --root /mnt/ +# nix run github:nix-community/disko -- --mode zap_create_mount ./disko-config.nix +# nix run github:nix-community/disko -- --mode create./disko-config.nix --dry-run +# nix run github:nix-community/disko -- --mode mount ./disko-config.nix --dry-run +# nixos-generate-config --no-filesystems --root /mnt # vim /mnt/configuration.nix # nixos-install --root /mnt { ... }: @@ -44,7 +45,7 @@ in content = { type = "luks"; name = "root"; - keyFile = "/root/password"; + #keyFile = "/root/password"; # keyFile contains the key for encryption, not the passphrase to unlock the key content = { type = "zfs"; pool = "zroot"; @@ -69,7 +70,7 @@ in content = { type = "luks"; name = "raid_${name}"; - keyFile = "/root/password"; + #keyFile = "/root/password"; # keyFile contains the key for encryption, not the passphrase to unlock the key content = { type = "zfs"; pool = "zraid"; @@ -95,6 +96,7 @@ in }; }; + # use boot.zfs.extraPools = [ "zraid" ] to mount this pool during boot time. zraid = { type = "zpool"; mode = "raidz2";