summaryrefslogtreecommitdiff
path: root/pkgs
diff options
context:
space:
mode:
authorBernardo Meurer <bernardo@meurer.org>2023-06-28 12:47:31 -0400
committerBernardo Meurer <bernardo@meurer.org>2023-06-28 12:47:32 -0400
commit9af7fe60b6a4ab990a95478a89f1bdd1c7517510 (patch)
tree21dbb788789119da52437d6af9ab3909f9d52c3e /pkgs
parent25ae710ba3cd448c5d5678788d37f3d149378bc0 (diff)
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.
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/nix-tools/darwin-rebuild.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/nix-tools/darwin-rebuild.sh b/pkgs/nix-tools/darwin-rebuild.sh
index ca0b266..52c746a 100644
--- a/pkgs/nix-tools/darwin-rebuild.sh
+++ b/pkgs/nix-tools/darwin-rebuild.sh
@@ -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)