diff options
author | Robert Helgesson <robert@rycee.net> | 2018-09-27 21:01:13 +0200 |
---|---|---|
committer | Robert Helgesson <robert@rycee.net> | 2018-09-27 21:01:13 +0200 |
commit | 9b3122e92c855ac406f8bb1868a830a42855fd22 (patch) | |
tree | d568667b4f22deb7603100392ffd09428e38a619 /modules/misc/lib.nix | |
parent | f44d4a1d8611c8b2f1fce97dc7810722aa10c8cb (diff) |
lib: copy module from NixOS
Importing the module directly from NixOS causes the documentation to
break, in particular the "Declared by" section.
Fixes #405
Diffstat (limited to 'modules/misc/lib.nix')
-rw-r--r-- | modules/misc/lib.nix | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/misc/lib.nix b/modules/misc/lib.nix new file mode 100644 index 00000000000..a0907545314 --- /dev/null +++ b/modules/misc/lib.nix @@ -0,0 +1,14 @@ +{ lib, ... }: + +{ + options = { + lib = lib.mkOption { + type = lib.types.attrsOf lib.types.attrs; + default = {}; + description = '' + This option allows modules to define helper functions, + constants, etc. + ''; + }; + }; +} |