gytis-ivaskevicius / flake-utils-plus

Use Nix flakes without any fluff.
MIT License
459 stars 52 forks source link

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

Closed lilyball closed 2 years ago

lilyball commented 2 years ago

If I set nix.generateNixPathFromInputs = true it will symlink my inputs into /etc/nix/inputs even if I also set nix.linkInputs = false. This configuration should be considered an error instead (e.g. using an assertion).

Also, I would suggest that setting nix.generateNixPathFromInputs = true should actually change the default value of nix.linkInputs, so that way nixos-option nix.linkInputs shows the right value.

gytis-ivaskevicius commented 2 years ago

Yep, makes sense.