mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 01:46:30 +00:00
35011ade4e
svn path=/nixos/branches/modular-nixos/; revision=16237
22 lines
382 B
Nix
22 lines
382 B
Nix
# 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;
|
|
}
|