about summary refs log tree commit diff
path: root/nixpkgs/nixos/modules/misc/passthru.nix
blob: beb9d78290377e229a65c00ebaac8d9f79b7cbfa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# This module allows you to export something from configuration
# Use case: export kernel source expression for ease of configuring

{ lib, ... }:

{
  options = {
    passthru = lib.mkOption {
      visible = false;
      description = lib.mdDoc ''
        This attribute set will be exported as a system attribute.
        You can put whatever you want here.
      '';
    };
  };
}