mirror of
https://github.com/elkowar/dots-of-war.git
synced 2024-12-27 22:52:23 +00:00
10 lines
265 B
Markdown
10 lines
265 B
Markdown
|
writers:
|
||
|
https://nixos.wiki/wiki/Nix-writers
|
||
|
|
||
|
variable replacement:
|
||
|
builtins.readFile (pkgs.substituteAll { src = ./nixhello.txt; name = "Major Tom"; })
|
||
|
that will replace all @name@ in the file with Major Tom
|
||
|
https://nixos.org/nixpkgs/manual/#fun-substituteAll
|
||
|
|
||
|
|