aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/pretty-rebuild
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xscripts/pretty-rebuild10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/pretty-rebuild b/scripts/pretty-rebuild
index 53c8dcc..733f4b6 100755
--- a/scripts/pretty-rebuild
+++ b/scripts/pretty-rebuild
@@ -7,6 +7,16 @@ else
args=("--flake .#$(hostname -s)" ${=@})
fi
+while read branch file; do
+ ssh king curl -L --output-dir /dev/shm -o ${file}.tar.gz https://api.github.com/repos/NixOS/nixpkgs/tarball/${branch}
+ scp king:/dev/shm/${file}.tar.gz /dev/shm
+ ssh king rm /dev/shm/${file}.tar.gz
+done <<EOF
+release-25.11 stable
+nixos-unstable unstable
+master master
+EOF
+
cd /etc/nixos && \
nix flake update && \
nixos-rebuild switch --upgrade --show-trace ${=args} && \