mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-16 05:18:17 +00:00
feat(darwin-rebuild): support --refresh
This flag allows forcing remote flakes (e.g. `github:foobar/nix-config`) to be force-refreshed, which is required for quickly iterating/activating a remote config.
This commit is contained in:
parent
25ae710ba3
commit
9af7fe60b6
1 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ showSyntax() {
|
||||||
echo " [--keep-going] [-k] [--keep-failed] [-K] [--fallback] [--show-trace]" >&2
|
echo " [--keep-going] [-k] [--keep-failed] [-K] [--fallback] [--show-trace]" >&2
|
||||||
echo " [-I path] [--option name value] [--arg name value] [--argstr name value]" >&2
|
echo " [-I path] [--option name value] [--arg name value] [--argstr name value]" >&2
|
||||||
echo " [--flake flake] [--update-input input flake] [--impure] [--recreate-lock-file]"
|
echo " [--flake flake] [--update-input input flake] [--impure] [--recreate-lock-file]"
|
||||||
echo " [--no-update-lock-file] ..." >&2
|
echo " [--no-update-lock-file] [--refresh] ..." >&2
|
||||||
exec man darwin-rebuild
|
exec man darwin-rebuild
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
@ -69,7 +69,7 @@ while [ $# -gt 0 ]; do
|
||||||
flake=$1
|
flake=$1
|
||||||
shift 1
|
shift 1
|
||||||
;;
|
;;
|
||||||
-L|-vL|--print-build-logs|--impure|--recreate-lock-file|--no-update-lock-file|--no-write-lock-file|--no-registries|--commit-lock-file)
|
-L|-vL|--print-build-logs|--impure|--recreate-lock-file|--no-update-lock-file|--no-write-lock-file|--no-registries|--commit-lock-file|--refresh)
|
||||||
extraLockFlags+=("$i")
|
extraLockFlags+=("$i")
|
||||||
;;
|
;;
|
||||||
--update-input)
|
--update-input)
|
||||||
|
|
Loading…
Add table
Reference in a new issue