disko: eval fix #3

This commit is contained in:
Sandro - 2023-05-19 02:38:08 +02:00
parent 19457597b1
commit b7fe690365
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ in
(lib.attrNames cfg.disks); (lib.attrNames cfg.disks);
disko = { disko = {
devices = lib.mkIf (cfg.disks != [ ]) (lib.head (map devices = lib.mkIf (cfg.disks != null) (lib.head (map
(disk: (disk:
let let
diskName = if disk.name != "" then "-${disk.name}" else ""; diskName = if disk.name != "" then "-${disk.name}" else "";