diff --git a/hosts/FredOS-Mediaserver.nix b/hosts/FredOS-Mediaserver.nix index da488f5..28f2e3d 100644 --- a/hosts/FredOS-Mediaserver.nix +++ b/hosts/FredOS-Mediaserver.nix @@ -59,13 +59,15 @@ unzip screen # 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" '' set -euo pipefail 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) 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 # Audible library -> /mnt/storage/torrents/audiobooks for Jellyfin.