all repos — nixfiles @ 4af38593fe36162e1882dbcce4b5a29324f5c6e1

System and user configuration, managed by nix and home-manager

os update: allow overriding elevation strategy

Alin
commit

4af38593fe36162e1882dbcce4b5a29324f5c6e1

parent

7589c935f7c66d35116dc2235c3f3a5127ae59dc

1 file changed, 3 insertions(+), 2 deletions(-)

changed files
M scripts/os/update → scripts/os/update
@@ -6,7 +6,7 @@ echo "not in nixfiles directory!" >&2
return 1 end -argparse --move-unknown "r/remote&" "b/build-host=&" -- $argv +argparse --move-unknown "r/remote&" "b/build-host=&" "e/elevation-strategy=&" -- $argv set --local target "$argv[1]" if test -z $target
@@ -18,6 +18,7 @@ set --local targetPlainHostname (string split --fields 1 --max 1 . $target)
set --local actions $argv[2] switch set --local action $actions[1] set --local build_host $_flag_build_host $target +set --local elevation_strategy $_flag_elevation_strategy passwordless if set --query _flag_remote; or set --query _flag_build_host set --function build_host_arg --build-host $build_host[1]
@@ -29,5 +30,5 @@ $build_host_arg \
--use-substitutes \ --target-host {$target} \ --show-trace \ - --elevation-strategy=passwordless \ + --elevation-strategy $elevation_strategy[1] \ $argv_opts