finalize chungus disko config.

feature/nixinite
Ingolf Wagner 2023-04-28 23:30:11 +02:00
parent 4fd291a7a2
commit a934150cd2
Signed by: palo
GPG Key ID: 76BF5F1928B9618B
1 changed files with 7 additions and 5 deletions

View File

@ -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";