home-manager: allow overriding pkgs with --arg(str) (#1889)

This commit is contained in:
Sandro 2021-03-31 19:40:37 +02:00 committed by GitHub
parent cbf0667037
commit 90223cf3eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -421,6 +421,7 @@ function doHelp() {
echo
echo "Options passed on to nix-build(1)"
echo
echo " --arg(str) NAME VALUE Override inputs passed to home-manager.nix"
echo " --cores NUM"
echo " --keep-failed"
echo " --keep-going"
@ -497,7 +498,7 @@ while [[ $# -gt 0 ]]; do
-n|--dry-run)
export DRY_RUN=1
;;
--option)
--option|--arg|--argstr)
PASSTHROUGH_OPTS+=("$opt" "$1" "$2")
shift 2
;;