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