summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSoispha Peetz <soispha@b-peetz.de>2026-11-13 22:29:02 +0100
committerSoispha Peetz <soispha@b-peetz.de>2026-11-13 22:29:02 +0100
commit9662bad2b3e1edaa7a869d7e1483178a42ad3c33 (patch)
tree936d711636c7a09e4b3dc0202570eb1a32a1e4fb
parentby-name.nix: Improve the warning message even more (diff)
downloadnix-library-9662bad2b3e1edaa7a869d7e1483178a42ad3c33.zip
options.nix: RemoveHEADprime
The `mkDefaultEnabled` function does not really work, because there is not so many module you would enable by default for anything. A `common` module, that enables them might be better.
-rw-r--r--default.nix1
-rw-r--r--options.nix21
2 files changed, 0 insertions, 22 deletions
diff --git a/default.nix b/default.nix
index 26e93c3..ae18001 100644
--- a/default.nix
+++ b/default.nix
@@ -43,5 +43,4 @@ in {
else merged;
math = import ./math.nix {inherit lib;};
- options = import ./options.nix {inherit lib;};
}
diff --git a/options.nix b/options.nix
deleted file mode 100644
index e01c10d..0000000
--- a/options.nix
+++ /dev/null
@@ -1,21 +0,0 @@
-{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;
- };
-}