Add useGlobalPkgs option

This commit is contained in:
Tobias Happ 2020-04-23 19:02:38 +02:00
parent 0e53bd6b1f
commit c54509d26a

View file

@ -16,6 +16,7 @@ let
imports = import <home-manager/modules/modules.nix> { imports = import <home-manager/modules/modules.nix> {
inherit pkgs; inherit pkgs;
lib = extendedLib; lib = extendedLib;
useNixpkgsModule = !cfg.useGlobalPkgs;
}; };
config = { config = {
@ -53,6 +54,12 @@ in
description = "Home Manager configuration."; description = "Home Manager configuration.";
}; };
useGlobalPkgs = mkEnableOption ''
using the system configuration's <literal>pkgs</literal>
argument in Home Manager. This disables the Home Manager
options <option>nixpkgs.*</option>
'';
useUserPackages = mkEnableOption '' useUserPackages = mkEnableOption ''
installation of user packages through the installation of user packages through the
<option>environment.packages</option> option. <option>environment.packages</option> option.