From 99e9264a1c184365ba16ce6fcdae6a9b131c2de2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Fri, 19 May 2023 03:29:02 +0200 Subject: [PATCH] disko: fix eval yet again --- modules/disko.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/disko.nix b/modules/disko.nix index 6faa189c..2fc3305b 100644 --- a/modules/disko.nix +++ b/modules/disko.nix @@ -51,7 +51,7 @@ in }; config = { - assertions = map + assertions = 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