1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +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:
Bernardo Meurer 2023-06-28 12:47:31 -04:00
parent 25ae710ba3
commit 9af7fe60b6
No known key found for this signature in database

View file

@ -12,7 +12,7 @@ showSyntax() {
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 " [--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
exit 1
}
@ -69,7 +69,7 @@ while [ $# -gt 0 ]; do
flake=$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")
;;
--update-input)