summaryrefslogtreecommitdiffstats
path: root/options.nix
blob: e01c10dc569b49435c4eaea67b9f30599b5bc6cb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{lib}: {
  /*
  Generate an enable option definition, that defaults to true.

  This conveniently allows the composition of a “common” module set.

  # Type

  mkEnable :: String -> AttrSet

  # Arguments

  name
  : The name to use in the option description.
  */
  mkDefaultEnabled = name:
    (lib.mkEnableOption name)
    // {
      default = true;
    };
}