diff options
author | Wael M. Nasreddine <wael.nasreddine@gmail.com> | 2019-02-20 23:39:49 -0800 |
---|---|---|
committer | Robert Helgesson <robert@rycee.net> | 2019-03-10 02:09:00 +0100 |
commit | efc795920b2ea1b157c321005336a0e8c0d6cd4e (patch) | |
tree | 66e655d6837f56d4d7673f17e93b74f7bb9773fe /nix-darwin | |
parent | d3fd287efbba3b67b2566341683289b6116eaa16 (diff) |
nix-darwin: support package install through user packages
Diffstat (limited to 'nix-darwin')
-rw-r--r-- | nix-darwin/default.nix | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/nix-darwin/default.nix b/nix-darwin/default.nix index b637d34b9a7..3e4bcb38d5f 100644 --- a/nix-darwin/default.nix +++ b/nix-darwin/default.nix @@ -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.<name?>.packages</option> option. ''; + + users = mkOption { + type = types.attrsOf hmModule; + default = {}; + description = '' + Per-user Home Manager configuration. + ''; + }; }; }; |