disko: fix eval yet another time

This commit is contained in:
Sandro - 2023-05-19 03:49:13 +02:00
parent 99e9264a1c
commit 9f59613e93
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 2 additions and 2 deletions

View File

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