aboutsummaryrefslogtreecommitdiff
path: root/modules/misc/submodule-support.nix
blob: ff80291cadf4746102a0d6983805eaac40ccf654 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ lib, ... }:

with lib;

{
  meta.maintainers = [ maintainers.rycee ];

  options.submoduleSupport = {
    enable = mkOption {
      type = types.bool;
      default = false;
      internal = true;
      description = ''
        Whether the Home Manager module system is used as a submodule
        in, for example, NixOS or nix-darwin.
      '';
    };

    externalPackageInstall = mkOption {
      type = types.bool;
      default = false;
      internal = true;
      description = ''
        Whether the packages of <option>home.packages</option> are
        installed separately from the Home Manager activation script.
        In NixOS, for example, this may be accomplished by installing
        the packages through
        <option>users.users.‹name?›.packages</option>.
      '';
    };
  };
}