update disko for chungus

This commit is contained in:
Ingolf Wagner 2023-04-28 07:44:34 +02:00
parent eb1c3778b0
commit 172ccfbc3d
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B

View file

@ -4,13 +4,13 @@
# vim /mnt/configuration.nix
# nixos-install --root /mnt
{ raid_disks ? [
"sda"
"sdb"
"sdc"
"sdd"
"sde"
]
{ raid_disks ? {
"HITACHI_E3834563CDU11M" = "/dev/disk/by-id/ata-HITACHI_HTS723232A7A364_E3834563CDU11M";
"HITACHI_E3834563CDU12M" = "/dev/disk/by-id/ata-HITACHI_HTS723232A7A364_E3834563CDU12M";
"HITACHI_E3834563CDU13M" = "/dev/disk/by-id/ata-HITACHI_HTS723232A7A364_E3834563CDU13M";
"HITACHI_E3834563CDU15M" = "/dev/disk/by-id/ata-HITACHI_HTS723232A7A364_E3834563CDU15M";
"HITACHI_E3834563CDU17M" = "/dev/disk/by-id/ata-HITACHI_HTS723232A7A364_E3834563CDU17M";
}
, ...
}: {
disko.devices = {
@ -54,13 +54,13 @@
];
};
};
} // listToAttrs
(device_name:
} // mapAttrs
(name: device_path:
{
name = device_name;
name = name;
value = {
type = "disk";
device = "/dev/${device_name}";
device = device_path;
content = {
type = "table";
format = "gpt";
@ -71,7 +71,7 @@
end = "100%";
content = {
type = "luks";
name = "raid_${device_name}";
name = "raid_${name}";
#keyFile = "/tmp/secret.key";
content = {
type = "zfs";