show logs with journald for update-system

This commit is contained in:
2025-12-11 12:16:46 -05:00
parent 372c612f22
commit 996a78e410

View File

@@ -77,7 +77,16 @@ in
inputs.agenix.packages.${stdenv.hostPlatform.system}.default
# Custom update script
(writeShellScriptBin "update-system" ''
systemctl start update-system
#!/usr/bin/env bash
set -euo pipefail
UNIT="update-system.service"
# start the service
systemctl start "$UNIT"
# follow logs until it exits
journalctl -u "$UNIT" -f -n 20
'')
];
}