this is what makes flakes so dang annoying to work with: static analysis tools need to make an exception just for flakes and have custom analysis logic for this nix-like non-nix file. however: if either flakes were built as a userspace nix feature, or completely removed from the language, it would be trivial for tools to support it!
@Malix_LabsFlakes are the most ambivalent feature in the Nix ecosystem
They're NOT written in Nix!
But a subset only allowing trivial expressions;
Proposals for fully dynamic (full Nix) OR fully static (TOML) both stalled.
"Experimental" for years, but deemed too used to experiment with https://t.co/HyodDVdZSi