From 9af7fe60b6a4ab990a95478a89f1bdd1c7517510 Mon Sep 17 00:00:00 2001 From: Bernardo Meurer Date: Wed, 28 Jun 2023 12:47:31 -0400 Subject: [PATCH] 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. --- pkgs/nix-tools/darwin-rebuild.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/nix-tools/darwin-rebuild.sh b/pkgs/nix-tools/darwin-rebuild.sh index ca0b266b..52c746a6 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)