diff options
-rw-r--r-- | modules/misc/lib.nix | 14 | ||||
-rw-r--r-- | modules/modules.nix | 2 |
2 files changed, 15 insertions, 1 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. + ''; + }; + }; +} diff --git a/modules/modules.nix b/modules/modules.nix index 8da265ce14a..1f056aa38ff 100644 --- a/modules/modules.nix +++ b/modules/modules.nix @@ -19,6 +19,7 @@ let ./manual.nix ./misc/fontconfig.nix ./misc/gtk.nix + ./misc/lib.nix ./misc/news.nix ./misc/nixpkgs.nix ./misc/pam.nix @@ -98,7 +99,6 @@ let ./xresources.nix ./xsession.nix <nixpkgs/nixos/modules/misc/assertions.nix> - <nixpkgs/nixos/modules/misc/lib.nix> <nixpkgs/nixos/modules/misc/meta.nix> ] ++ |