allow overriding action passed to nixos-rebuild
1 file changed, 4 insertions(+), 1 deletion(-)
changed files
M scripts/os/update/linde → scripts/os/update/linde
@@ -6,9 +6,12 @@ echo "not in nixfiles directory!" >&2 return 1 end +argparse -- $argv + set --local target (status basename) +set --local action (if test -n argv[1]; echo $argv[1]; else echo "switch"; end) -nixos-rebuild switch \ +nixos-rebuild $action \ --flake .?submodules=1#{$target} \ --target-host root@{$target} \ --build-host root@{$target} \