remove linde
1 file changed, 22 insertions(+), 1 deletion(-)
changed files
M scripts/os/update/smrk → scripts/os/update/smrk
@@ -1,1 +1,22 @@ -linde+#!/usr/bin/env fish +# update server with nixos-rebuild + +if test (path basename $PWD) != nixfiles + echo "not in nixfiles directory!" >&2 + return 1 +end + +argparse r/remote -- $argv + +set --local target (status basename) +set --local action (if test -n "$argv[1]"; echo $argv[1]; else echo "switch"; end) + +if set --query _flag_remote + set --function build_host --build-host root@{$target} +end + +nixos-rebuild $action \ + --flake .?submodules=1#{$target} \ + $build_host \ + --target-host root@{$target} \ + --no-reexec