disko: fix eval yet again

This commit is contained in:
Sandro - 2023-05-19 03:29:02 +02:00
parent adca4a2674
commit 99e9264a1c
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -51,7 +51,7 @@ in
}; };
config = { config = {
assertions = map assertions = lib.head (map
(disk: [ (disk: [
{ {
assertion = disk.withCeph || disk.withZfs; assertion = disk.withCeph || disk.withZfs;
@ -62,7 +62,7 @@ in
message = "Ceph requires Luks!"; message = "Ceph requires Luks!";
} }
]) ])
cfg.disks; cfg.disks);
disko = { disko = {
devices = lib.mkIf (cfg.disks != [ ]) (lib.head (map devices = lib.mkIf (cfg.disks != [ ]) (lib.head (map