docs: use nvf injections in docs

This commit is contained in:
Snoweuph 2026-05-11 22:22:20 +02:00
commit 43de0c6acb
No known key found for this signature in database
GPG key ID: BEFC41DA223CEC55
8 changed files with 64 additions and 13 deletions

View file

@ -10,11 +10,15 @@ In the following example, we are creating a custom injection, to highlight the
Lua string after `mkLuaInline`.
```nix
foo = mkLuaInline ''
function bar()
return 'foobar'
end
'';
let
inherit (lib.generators) mkLuaInline;
in {
foo = mkLuaInline ''
function bar()
return 'foobar'
end
'';
}
```
```nix