add script to update linde with nixos-rebuild
1 file changed, 16 insertions(+), 0 deletions(-)
changed files
A scripts/os/update/linde
@@ -0,0 +1,16 @@ +#!/usr/bin/env fish +# update server with nixos-rebuild + +if test (path basename $PWD) != nixfiles + echo "not in nixfiles directory!" >&2 + return 1 +end + +set --local target (status basename) +set --local domain alin.ovh + +nixos-rebuild switch \ + --flake .?submodules=1#{$target} \ + --target-host root@{$target}.{$domain} \ + --build-host root@{$target}.{$domain} \ + --no-reexec