Fix #106 generateNixPathFromInputs == true && linkInputs == false should be an error

This commit is contained in:
Gytis Ivaskevicius 2022-03-14 13:02:40 +02:00
parent 546045090f
commit 1c8926cd26

View File

@ -24,6 +24,13 @@ in
};
config = {
assertions = [
{
assertion = !config.nix.generateNixPathFromInputs || config.nix.linkInputs;
message = "When using 'nix.generateNixPathFromInputs' please make sure to set 'nix.linkInputs = true'";
}
];
nix.registry =
if config.nix.generateRegistryFromInputs
then nixRegistry