| 
									
										
										
										
											2025-04-16 20:36:08 -04:00
										 |  |  | #!/usr/bin/env bash | 
					
						
							|  |  |  | # | 
					
						
							|  |  |  | set -euo pipefail | 
					
						
							|  |  |  | IFS=$'\n\t' | 
					
						
							|  |  |  | DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | : "${JOBS:="1"}" | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-05-04 15:16:44 -04:00
										 |  |  | #TARGET=10.216.1.15 | 
					
						
							| 
									
										
										
										
											2025-04-16 20:36:08 -04:00
										 |  |  | # TARGET=192.168.211.250 | 
					
						
							| 
									
										
										
										
											2025-05-04 15:16:44 -04:00
										 |  |  | TARGET=quark | 
					
						
							| 
									
										
										
										
											2025-04-16 20:36:08 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | nix flake update zsh-histdb --flake "$DIR/../../" | 
					
						
							|  |  |  | nix flake update ansible-sshjail --flake "$DIR/../../" | 
					
						
							|  |  |  | for f in /persist/manual/manual_add_to_store/*; do nix-store --add-fixed sha256 "$f"; done | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-05-04 12:31:33 -04:00
										 |  |  | nixos-rebuild boot --flake "$DIR/../../#quark" --target-host "$TARGET" --build-host "$TARGET" --fast --use-remote-sudo --max-jobs "$JOBS" "${@}" |& nom | 
					
						
							| 
									
										
										
										
											2025-04-16 20:36:08 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | # rsync -av --progress --delete --exclude=.git "$DIR/../../../configuration" "talexander@${TARGET}:/persist/manual/" && ssh talexander@${TARGET} 'cd /persist/manual/configuration && nix flake update zsh-histdb && nix flake update ansible-sshjail && doas nice -n 19 nixos-rebuild boot --flake /persist/manual/configuration#quark' |