Add lib module for modules to provide helper functions

This commit is contained in:
Shea Levy 2012-07-12 13:46:04 -04:00
parent 0c12e29368
commit 8712e1dafc
2 changed files with 16 additions and 0 deletions

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

@ -0,0 +1,15 @@
{ config, pkgs, ... }:
{
options = {
lib = pkgs.lib.mkOption {
default = {};
type = pkgs.lib.types.attrsOf pkgs.lib.types.attrs;
description = ''
This option allows modules to define helper functions, constants, etc.
'';
};
};
}

View file

@ -34,6 +34,7 @@
./misc/crashdump.nix
./misc/ids.nix
./misc/locate.nix
./misc/lib.nix
./misc/nixpkgs.nix
./misc/passthru.nix
./misc/version.nix