Skip to content

Commit

Permalink
doc: add escaping pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
domenkozar authored Jul 31, 2023
1 parent da313ab commit e91205a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/common-patterns.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,14 @@ in {
];
}
```

# How can I escape Nix curly braces if I'm writing shell code?

```nix
{ pkgs, ... }: {
scripts.myscript.exec = ''
foobar=1
echo ''${foobar}
'';
}
```

0 comments on commit e91205a

Please sign in to comment.