eee-update: apply on next boot
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
d4657c2bf9
commit
5e5a4f0ca5
1 changed files with 4 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue