eee-update: apply on next boot

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
rope 2026-09-29 18:34:31 +01:00
parent d4657c2bf9
commit 5e5a4f0ca5

View file

@ -59,13 +59,15 @@
unzip unzip
screen screen
# The Eee can't evaluate the flake in 1GB: build here, push over its # The Eee can't evaluate the flake in 1GB: build here, push over its
# tunnel, switch. The out-link keeps the closure from the weekly GC. # tunnel, apply on next boot (a live switch froze it out of memory).
# The out-link keeps the closure from the weekly GC.
(pkgs.writeShellScriptBin "eee-update" '' (pkgs.writeShellScriptBin "eee-update" ''
set -euo pipefail set -euo pipefail
sys=$(nix build --refresh --print-out-paths --out-link ~/eee-system \ sys=$(nix build --refresh --print-out-paths --out-link ~/eee-system \
git+https://forg.gregersen.it/rope/nixos#nixosConfigurations.FredOS-Eee.config.system.build.toplevel) git+https://forg.gregersen.it/rope/nixos#nixosConfigurations.FredOS-Eee.config.system.build.toplevel)
nix copy --no-check-sigs --to ssh-ng://root@eee "$sys" nix copy --no-check-sigs --to ssh-ng://root@eee "$sys"
ssh root@eee "nix-env -p /nix/var/nix/profiles/system --set $sys && $sys/bin/switch-to-configuration switch" ssh root@eee "nix-env -p /nix/var/nix/profiles/system --set $sys && $sys/bin/switch-to-configuration boot"
echo "Eee updated; applies on its next reboot."
'') '')
yt-dlp yt-dlp
# Audible library -> /mnt/storage/torrents/audiobooks for Jellyfin. # Audible library -> /mnt/storage/torrents/audiobooks for Jellyfin.