mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 11:39:46 +01:00
home-manager: make modules path more configurable
This commit is contained in:
parent
37831674e2
commit
e4723b51cd
2 changed files with 3 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs }:
|
{ pkgs, modulesPath ? "$HOME/.nixpkgs/home-manager/modules" }:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
||||||
|
@ -28,6 +28,7 @@ pkgs.stdenv.mkDerivation {
|
||||||
|
|
||||||
substituteInPlace $out/bin/home-manager \
|
substituteInPlace $out/bin/home-manager \
|
||||||
--subst-var-by bash "${pkgs.bash}" \
|
--subst-var-by bash "${pkgs.bash}" \
|
||||||
|
--subst-var-by MODULES_PATH '${modulesPath}' \
|
||||||
--subst-var-by HOME_MANAGER_EXPR_PATH "${homeManagerExpr}"
|
--subst-var-by HOME_MANAGER_EXPR_PATH "${homeManagerExpr}"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ function doRebuild() {
|
||||||
|
|
||||||
nix-build --show-trace \
|
nix-build --show-trace \
|
||||||
"@HOME_MANAGER_EXPR_PATH@" \
|
"@HOME_MANAGER_EXPR_PATH@" \
|
||||||
--argstr modulesPath "$HOME/.nixpkgs/home-manager/modules" \
|
--argstr modulesPath "@MODULES_PATH@" \
|
||||||
--argstr confPath "$confFile" \
|
--argstr confPath "$confFile" \
|
||||||
-A activation-script \
|
-A activation-script \
|
||||||
-o "$wrkdir/generation"
|
-o "$wrkdir/generation"
|
||||||
|
|
Loading…
Reference in a new issue