mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-10 22:30:59 +00:00
When the `tags` option is set to `true`, the formatters will translate
singleton attrsets with a key starting with '!' into a YAML tag.
```nix
let format = formats.yaml_1_1 { tags = true; };
in generate {test = {"!foo" = { bar = { "!quux" = "baz"; }; }; }; };
```
```yaml
%YAML 1.1
---
test: !foo
bar: !quux baz
```