summaryrefslogtreecommitdiff
path: root/.trash/NixOS Modules 1.md
blob: cd906ddd6926fb3da3dc7623d8b0017f4642e34c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---
tags:
  - nix
  - nixos
references:
  - https://nixos.org/manual/nixos/unstable/#sec-writing-modules
---
Extra care must be taken when writing systemd services using Exec* due to interpolation and such. `utils.escapeSystemdExecArg` and `utils.escapeSystemdExecArg` exist.

```nix
{
  options = {
    name = mkOption {
      type = type specification;
      default = default value;
      example = example value;
      description = "Description for use in the NixOS manual.";
    };
  };
}
```