From c54509d26ad5aa8e7686d56eccca35168fc68d39 Mon Sep 17 00:00:00 2001 From: Tobias Happ Date: Thu, 23 Apr 2020 19:02:38 +0200 Subject: [PATCH] Add useGlobalPkgs option --- modules/home-manager.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/home-manager.nix b/modules/home-manager.nix index 6181b6d..82b18a5 100644 --- a/modules/home-manager.nix +++ b/modules/home-manager.nix @@ -16,6 +16,7 @@ let imports = import { inherit pkgs; lib = extendedLib; + useNixpkgsModule = !cfg.useGlobalPkgs; }; config = { @@ -53,6 +54,12 @@ in description = "Home Manager configuration."; }; + useGlobalPkgs = mkEnableOption '' + using the system configuration's pkgs + argument in Home Manager. This disables the Home Manager + options + ''; + useUserPackages = mkEnableOption '' installation of user packages through the option.