diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-10-31 21:14:37 +0100 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-10-31 21:14:37 +0100 |
| commit | f23585c9a926b901cc436920416b0c747f53b3a3 (patch) | |
| tree | d3f82704795377c6658732654eafb573be9b097a /update | |
| parent | treewide: Update (diff) | |
| download | nixos-server-f23585c9a926b901cc436920416b0c747f53b3a3.zip | |
update.sh: Also build the hosts
This makes unattended updates easier, as you don't need to issue the command after the update finished.
Diffstat (limited to '')
| -rwxr-xr-x | update.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/update.sh b/update.sh index e22f4ea..669ab7a 100755 --- a/update.sh +++ b/update.sh @@ -12,4 +12,9 @@ __update_sh_run() { __update_sh_run nix flake update __update_sh_run ./pkgs/update_pkgs.sh "$@" + + +for host in "server2" "server3"; do + nix build ".#nixosConfigurations.$host.config.system.build.toplevel" --print-out-paths --no-link --option max-jobs 1 +done # vim: ft=sh |
