all repos — nixfiles @ 383c03e51de87edd103223552ed3cbf58730e2a1

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

scripts/os/update/linde (view raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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