1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-23 03:29:45 +01:00

nix-darwin: support package install through user packages

This commit is contained in:
Wael M. Nasreddine 2019-02-20 23:39:49 -08:00 committed by Robert Helgesson
parent d3fd287efb
commit efc795920b
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -11,6 +11,8 @@ let
config = {
submoduleSupport.enable = true;
submoduleSupport.externalPackageInstall = cfg.useUserPackages;
home.username = config.users.users.${name}.name;
home.homeDirectory = config.users.users.${name}.home;
};
@ -20,12 +22,19 @@ in
{
options = {
home-manager.users = mkOption {
type = types.attrsOf hmModule;
default = {};
description = ''
Per-user Home Manager configuration.
home-manager = {
useUserPackages = mkEnableOption ''
installation of user packages through the
<option>users.users.&lt;name?&gt;.packages</option> option.
'';
users = mkOption {
type = types.attrsOf hmModule;
default = {};
description = ''
Per-user Home Manager configuration.
'';
};
};
};