disko: fix eval

This commit is contained in:
Sandro - 2023-05-10 20:34:18 +02:00
parent 183da9d6e3
commit d6b3b5a3cd
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -49,7 +49,8 @@ in
}
];
disko.devices =
disko = {
devices =
let
rootSize = 200;
zfs = {
@ -60,7 +61,8 @@ in
};
};
in
lib.mkIf (cfg.rootDisk != "") {
lib.mkIf (cfg.rootDisk != "")
{
disk.${cfg.rootDisk} = {
device = cfg.rootDisk;
type = "disk";
@ -182,5 +184,8 @@ in
};
};
};
# we use our own hardware-configuration.nix
enableConfig = false;
};
};
}