Adding back passthru functionality

svn path=/nixos/branches/modular-nixos/; revision=16237
This commit is contained in:
Michael Raskin 2009-07-08 09:10:48 +00:00
parent 9a66d59786
commit 35011ade4e
2 changed files with 22 additions and 0 deletions

21
modules/misc/passthru.nix Normal file
View File

@ -0,0 +1,21 @@
# This module allows you to export something from configuration
# Use case: export kernel source expression for ease of configuring
{config, pkgs, ...}:
let
options = {
passthru = pkgs.lib.mkOption {
description = ''
This attribute set will be exported as a system attribute.
You can put whatever you want here.
'';
};
};
in
{
require = options;
}

View File

@ -16,6 +16,7 @@
./misc/assertions.nix
./misc/ids.nix
./misc/locate.nix
./misc/passthru.nix
./programs/bash/bash.nix
./programs/info.nix
./programs/pwdutils/pwdutils.nix