mirror of
https://github.com/nix-community/home-manager
synced 2024-11-18 00:59:44 +01:00
lib: copy module from NixOS
Importing the module directly from NixOS causes the documentation to
break, in particular the "Declared by" section.
Fixes #405
(cherry picked from commit 9b3122e92c
)
This commit is contained in:
parent
d268605244
commit
f34e5f1c6c
2 changed files with 15 additions and 1 deletions
14
modules/misc/lib.nix
Normal file
14
modules/misc/lib.nix
Normal 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.
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
|
@ -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
|
||||
|
@ -96,7 +97,6 @@ let
|
|||
./xresources.nix
|
||||
./xsession.nix
|
||||
<nixpkgs/nixos/modules/misc/assertions.nix>
|
||||
<nixpkgs/nixos/modules/misc/lib.nix>
|
||||
<nixpkgs/nixos/modules/misc/meta.nix>
|
||||
]
|
||||
++
|
||||
|
|
Loading…
Reference in a new issue