mirror of
https://github.com/elkowar/dots-of-war.git
synced 2024-12-25 13:42:23 +00:00
9 lines
265 B
Markdown
9 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
|
|
|
|
|