2009-07-08 11:10:48 +02:00
|
|
|
# This module allows you to export something from configuration
|
2011-09-14 20:20:50 +02:00
|
|
|
# Use case: export kernel source expression for ease of configuring
|
2009-07-08 11:10:48 +02:00
|
|
|
|
|
|
|
{config, pkgs, ...}:
|
|
|
|
|
2011-09-14 20:20:50 +02:00
|
|
|
let
|
2009-07-08 11:10:48 +02:00
|
|
|
|
|
|
|
options = {
|
|
|
|
passthru = pkgs.lib.mkOption {
|
|
|
|
description = ''
|
|
|
|
This attribute set will be exported as a system attribute.
|
|
|
|
You can put whatever you want here.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2011-09-14 20:20:50 +02:00
|
|
|
in
|
2009-07-08 11:10:48 +02:00
|
|
|
|
|
|
|
{
|
|
|
|
require = options;
|
|
|
|
}
|