Closed NomisIV closed 4 months ago
Ah I thought I had replied to this. Sorry about that!
Thank you for filing this issue! I agree this is something that should be fixed in Snowfall Lib. It shouldn't be too bad to import the file and check to see whether the value is a function or not :+1:
This should now be fixed on dev via this PR: https://github.com/snowfallorg/lib/pull/71
I had a module in
./modules/home/xdg-dirs/default.nix
with the following contents:Note the lack of an import set. This would be a valid nixos/home-manager module, but snowfall-lib blows up with a cryptic (but reasonable) error message:
While it's obviously easy to add an import set, the error is confusing and a bad user experience, unless you know exactly what's wrong. So I mean that the solution doesn't have to be to support this, but to at least have a nice error message explaining what's wrong.