summaryrefslogtreecommitdiff
path: root/.trash/NixOS Modules 1.md
diff options
context:
space:
mode:
authorJasper Ras <jras@hostnet.nl>2025-03-20 11:07:49 +0100
committerJasper Ras <jras@hostnet.nl>2025-03-20 11:07:49 +0100
commit80ccf68f55dbb70d7e5ed52ee95b3c9d1b6ce264 (patch)
tree93e28e85ab70052aa6f577998ec7dc1f413b40c0 /.trash/NixOS Modules 1.md
parent9642cd7ae24f0ba79ce5647c709b35ae8f06a285 (diff)
vault backup: 2025-03-20 11:07:48
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