2019-02-09 15:08:16 +01:00
|
|
|
|
{ lib, ... }:
|
|
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
meta.maintainers = [ maintainers.rycee ];
|
|
|
|
|
|
|
|
|
|
options.submoduleSupport = {
|
|
|
|
|
enable = mkOption {
|
|
|
|
|
type = types.bool;
|
|
|
|
|
default = false;
|
|
|
|
|
internal = true;
|
2023-07-02 01:45:18 +02:00
|
|
|
|
description = ''
|
2019-02-09 15:08:16 +01:00
|
|
|
|
Whether the Home Manager module system is used as a submodule
|
|
|
|
|
in, for example, NixOS or nix-darwin.
|
|
|
|
|
'';
|
|
|
|
|
};
|
2017-12-19 15:43:40 +01:00
|
|
|
|
|
|
|
|
|
externalPackageInstall = mkOption {
|
|
|
|
|
type = types.bool;
|
|
|
|
|
default = false;
|
|
|
|
|
internal = true;
|
2023-07-02 01:45:18 +02:00
|
|
|
|
description = ''
|
2023-07-01 01:30:13 +02:00
|
|
|
|
Whether the packages of {option}`home.packages` are
|
2017-12-19 15:43:40 +01:00
|
|
|
|
installed separately from the Home Manager activation script.
|
|
|
|
|
In NixOS, for example, this may be accomplished by installing
|
|
|
|
|
the packages through
|
2023-07-01 01:30:13 +02:00
|
|
|
|
{option}`users.users.‹name?›.packages`.
|
2017-12-19 15:43:40 +01:00
|
|
|
|
'';
|
|
|
|
|
};
|
2019-02-09 15:08:16 +01:00
|
|
|
|
};
|
2024-05-15 01:49:17 +02:00
|
|
|
|
|
|
|
|
|
config = {
|
|
|
|
|
# To make it easier for the end user to override the values in the
|
|
|
|
|
# configuration depending on the installation method, we set default values
|
|
|
|
|
# for the arguments that are defined in the NixOS/nix-darwin modules.
|
|
|
|
|
#
|
|
|
|
|
# Without these defaults, these attributes would simply not exist, and the
|
|
|
|
|
# module system can not inform modules about their non-existence; see
|
|
|
|
|
# https://github.com/NixOS/nixpkgs/issues/311709#issuecomment-2110861842
|
|
|
|
|
_module.args = {
|
|
|
|
|
osConfig = mkDefault null;
|
|
|
|
|
nixosConfig = mkDefault null;
|
|
|
|
|
darwinConfig = mkDefault null;
|
|
|
|
|
};
|
|
|
|
|
};
|
2019-02-09 15:08:16 +01:00
|
|
|
|
}
|