Skip to content

Commit fed181f

Browse files
nixos/doc/modular-services: run nixfmt on code blocks
1 parent d3caafc commit fed181f

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

nixos/doc/manual/development/modular-services.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,18 @@ So note that the default value of `system.services.<name>` is not a complete ser
4545
It is possible to write service modules that are portable. This is done by either avoiding the `systemd` option tree, or by defining process-manager-specific definitions in an optional way:
4646

4747
```nix
48-
{ config, options, lib, ... }: {
48+
{
49+
config,
50+
options,
51+
lib,
52+
...
53+
}:
54+
{
4955
_class = "service";
5056
config = {
5157
process.argv = [ (lib.getExe config.foo.program) ];
52-
} // lib.optionalAttrs (options?systemd) {
58+
}
59+
// lib.optionalAttrs (options ? systemd) {
5360
# ... systemd-specific definitions ...
5461
};
5562
}

0 commit comments

Comments
 (0)