From 39a3a1a6f8c0a5bd387dcddf07ea686a3f2e493d Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Mon, 2 Nov 2026 15:19:44 +0100 Subject: treewide: Add new math and options subcategories and restructure --- options.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 options.nix (limited to 'options.nix') diff --git a/options.nix b/options.nix new file mode 100644 index 0000000..e01c10d --- /dev/null +++ b/options.nix @@ -0,0 +1,21 @@ +{lib}: { + /* + Generate an enable option definition, that defaults to true. + + This conveniently allows the composition of a “common” module set. + + # Type + + mkEnable :: String -> AttrSet + + # Arguments + + name + : The name to use in the option description. + */ + mkDefaultEnabled = name: + (lib.mkEnableOption name) + // { + default = true; + }; +} -- cgit v1.3.1