From 5e5a4f0ca5426f7d8a9df9a41f751556e66c8c86 Mon Sep 17 00:00:00 2001 From: rope Date: Tue, 29 Sep 2026 18:34:31 +0100 Subject: [PATCH] eee-update: apply on next boot Co-Authored-By: Claude Opus 5.5 --- hosts/FredOS-Mediaserver.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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.