nixos integration: add option 'useGlobalPkgs'

PR #1059
This commit is contained in:
Erik Arvstedt
2020-03-01 17:06:20 +01:00
committed by Robert Helgesson
parent c7b43786ad
commit efbe1383e6
4 changed files with 51 additions and 6 deletions

View File

@@ -15,6 +15,7 @@ let
imports = import ../modules/modules.nix {
inherit pkgs;
lib = extendedLib;
useNixpkgsModule = !cfg.useGlobalPkgs;
};
config = {
@@ -45,6 +46,12 @@ in {
<option>users.users.name?.packages</option> option.
'';
useGlobalPkgs = mkEnableOption ''
using the system configuration's <literal>pkgs</literal>
argument in Home Manager. This disables the Home Manager
options <option>nixpkgs.*</option>
'';
backupFileExtension = mkOption {
type = types.nullOr types.str;
default = null;