summary refs log tree commit diff
path: root/modules/misc/passthru.nix
blob: 9962352a40a5d8465b6a337fda0ac34621b6cd5b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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;
}