add update2: local eval+build fallback on the clients

This commit is contained in:
rope 2026-08-13 13:53:01 +01:00
parent 13002dbc7d
commit e514eb62c5

View file

@ -145,6 +145,9 @@ in
if config.networking.hostName == "FredOS-Mediaserver" if config.networking.hostName == "FredOS-Mediaserver"
then localUpdate then localUpdate
else remoteUpdate; else remoteUpdate;
# Fallback for when the server is down or the alias itself changed and the
# live generation still has the old one: eval and build right here.
update2 = localUpdate;
clean = "sudo nix-collect-garbage -d"; clean = "sudo nix-collect-garbage -d";
# Throw away the VM's disk first so every run is a real first boot — # Throw away the VM's disk first so every run is a real first boot —
# greeter, Plasma first-run, the lot. Builds into ./result in $PWD. # greeter, Plasma first-run, the lot. Builds into ./result in $PWD.