summaryrefslogtreecommitdiff
path: root/.trash/NixOS Modules 1.md
diff options
context:
space:
mode:
Diffstat (limited to '.trash/NixOS Modules 1.md')
-rw-r--r--.trash/NixOS Modules 1.md21
1 files changed, 21 insertions, 0 deletions
diff --git a/.trash/NixOS Modules 1.md b/.trash/NixOS Modules 1.md
new file mode 100644
index 0000000..cd906dd
--- /dev/null
+++ b/.trash/NixOS Modules 1.md
@@ -0,0 +1,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.";
+ };
+ };
+}
+``` \ No newline at end of file