lib: copy module from NixOS

Importing the module directly from NixOS causes the documentation to
break, in particular the "Declared by" section.

Fixes #405
This commit is contained in:
Robert Helgesson 2018-09-27 21:01:13 +02:00
parent f44d4a1d86
commit 9b3122e92c
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
2 changed files with 15 additions and 1 deletions

14
modules/misc/lib.nix Normal file
View file

@ -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.
'';
};
};
}

View file

@ -19,6 +19,7 @@ let
./manual.nix ./manual.nix
./misc/fontconfig.nix ./misc/fontconfig.nix
./misc/gtk.nix ./misc/gtk.nix
./misc/lib.nix
./misc/news.nix ./misc/news.nix
./misc/nixpkgs.nix ./misc/nixpkgs.nix
./misc/pam.nix ./misc/pam.nix
@ -98,7 +99,6 @@ let
./xresources.nix ./xresources.nix
./xsession.nix ./xsession.nix
<nixpkgs/nixos/modules/misc/assertions.nix> <nixpkgs/nixos/modules/misc/assertions.nix>
<nixpkgs/nixos/modules/misc/lib.nix>
<nixpkgs/nixos/modules/misc/meta.nix> <nixpkgs/nixos/modules/misc/meta.nix>
] ]
++ ++