2026-05-13 18:14 UTC
TIL in #nix these behave subtlety and surprisingly differently:
foo = ./file-path
foo = "${./file-path}"
#nixos
Replies (1)
-
@nobodyinperson@fosstodon.org 2026-05-13 19:16
@fae@pony.social Oh yes! Only the second one ensures that ./file-path is actually put into the nix store and recognised as a dependency, so it is not garbage collected eventually. Has caused me quite some headache until I understood that.