Nix (language): Difference between revisions
imported>Profpatsch add tips & trick section; convert string to path |
imported>Profpatsch m fix splitting mistake from inserting new subtopic |
||
| Line 377: | Line 377: | ||
Nix language has decent syntax highlighting (SH) support among popular code editors, but refactoring/autocomplete is still rare. | Nix language has decent syntax highlighting (SH) support among popular code editors, but refactoring/autocomplete is still rare. | ||
Reference: [[Editor Modes for Nix Files]] | |||
== Tips & Tricks == | == Tips & Tricks == | ||
| Line 407: | Line 408: | ||
This trick might be helpful in combination with [https://nixos.org/nix/manual/#builtin-getEnv <code>builtins.getEnv</code>], which returns a string (which might be a path). Be careful, depending on environment variables introduces heavy non-determinism and might lead to rebuilds! | This trick might be helpful in combination with [https://nixos.org/nix/manual/#builtin-getEnv <code>builtins.getEnv</code>], which returns a string (which might be a path). Be careful, depending on environment variables introduces heavy non-determinism and might lead to rebuilds! | ||
[[Category:Discussion]] | [[Category:Discussion]] | ||
[[Category:Nix Language]] | [[Category:Nix Language]] | ||
[[Category:Incomplete]] | [[Category:Incomplete]] | ||