about summary refs log tree commit diff stats
path: root/update.sh
diff options
context:
space:
mode:
Diffstat (limited to 'update.sh')
-rwxr-xr-xupdate.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/update.sh b/update.sh
index c43b80b..903b0ea 100755
--- a/update.sh
+++ b/update.sh
@@ -3,12 +3,17 @@ __update_sh_run() {
     __update_sh_command="$1"
     shift 1
 
-    printf "\033[35;1m> \033[0m\033[35;1m%s\033[0m\n" "Running '$(basename "$__update_sh_command")' .."
+    printf "\033[35;1m> \033[0m\033[35;1m%s\033[0m\n" "Running '$(basename "$__update_sh_command") $*' .."
 
     "$__update_sh_command" "$@"
 
     unset __update_sh_command
 }
 
+__update_sh_run nix flake update
 __update_sh_run ./pkgs/update_pkgs.sh "$@"
+
+for host in "server2" "server3"; do
+    __update_sh_run nix build ".#nixosConfigurations.$host.config.system.build.toplevel" --print-out-paths --no-link --option max-jobs 1
+done
 # vim: ft=sh