1
0
forked from c3d2/nix-config

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

View File

@ -51,7 +51,7 @@ in
}; };
config = { config = {
assertions = lib.head (map assertions = lib.mkIf (cfg.disks != [ ]) (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