mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 19:46:07 +01:00
Add useGlobalPkgs option
This commit is contained in:
parent
0e53bd6b1f
commit
c54509d26a
1 changed files with 7 additions and 0 deletions
|
|
@ -16,6 +16,7 @@ let
|
|||
imports = import <home-manager/modules/modules.nix> {
|
||||
inherit pkgs;
|
||||
lib = extendedLib;
|
||||
useNixpkgsModule = !cfg.useGlobalPkgs;
|
||||
};
|
||||
|
||||
config = {
|
||||
|
|
@ -53,6 +54,12 @@ in
|
|||
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 ''
|
||||
installation of user packages through the
|
||||
<option>environment.packages</option> option.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue