update disko for chungus
This commit is contained in:
parent
eb1c3778b0
commit
172ccfbc3d
1 changed files with 12 additions and 12 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue