From 27514d58573ce1f844af4ea60afa72c7f58f1cd7 Mon Sep 17 00:00:00 2001 From: Jasper Ras Date: Thu, 21 Aug 2025 22:09:29 +0200 Subject: vault backup: 2025-08-21 22:09:29 --- Option declarations.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Option declarations.md (limited to 'Option declarations.md') diff --git a/Option declarations.md b/Option declarations.md new file mode 100644 index 0000000..0bc59f6 --- /dev/null +++ b/Option declarations.md @@ -0,0 +1,20 @@ +[Types](https://nixos.org/manual/nixos/stable/#sec-option-types) +[[Delayed conditionals]] + +--- + +```nix +{ + options = { + name = mkOption { + type = type specification; + default = default value; + example = example value; + description = "Description for use in the NixOS manual."; + }; + }; +} +``` + +# Utility functions +`mkEnableOption "what"` -> a bool opt with a desc like: "Whether to enable what". \ No newline at end of file -- cgit v1.2.3