about summary refs log tree commit diff stats
path: root/update
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-10-31 21:14:37 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-10-31 21:14:37 +0100
commitf23585c9a926b901cc436920416b0c747f53b3a3 (patch)
treed3f82704795377c6658732654eafb573be9b097a /update
parenttreewide: Update (diff)
downloadnixos-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-xupdate.sh5
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