nix-darwin: support package install through user packages
(cherry picked from commit efc795920b
)
This commit is contained in:
parent
0ac92c6a42
commit
9b82a37d28
|
@ -11,6 +11,8 @@ let
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
submoduleSupport.enable = true;
|
submoduleSupport.enable = true;
|
||||||
|
submoduleSupport.externalPackageInstall = cfg.useUserPackages;
|
||||||
|
|
||||||
home.username = config.users.users.${name}.name;
|
home.username = config.users.users.${name}.name;
|
||||||
home.homeDirectory = config.users.users.${name}.home;
|
home.homeDirectory = config.users.users.${name}.home;
|
||||||
};
|
};
|
||||||
|
@ -20,12 +22,19 @@ in
|
||||||
|
|
||||||
{
|
{
|
||||||
options = {
|
options = {
|
||||||
home-manager.users = mkOption {
|
home-manager = {
|
||||||
type = types.attrsOf hmModule;
|
useUserPackages = mkEnableOption ''
|
||||||
default = {};
|
installation of user packages through the
|
||||||
description = ''
|
<option>users.users.<name?>.packages</option> option.
|
||||||
Per-user Home Manager configuration.
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
users = mkOption {
|
||||||
|
type = types.attrsOf hmModule;
|
||||||
|
default = {};
|
||||||
|
description = ''
|
||||||
|
Per-user Home Manager configuration.
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue