show logs with journald for update-system, but also close journal after finished

This commit is contained in:
2025-12-11 12:38:14 -05:00
parent 996a78e410
commit cad6d2196f
2 changed files with 24 additions and 13 deletions

View File

@@ -75,19 +75,6 @@ in
oh-my-posh
inputs.lazyvim-nixvim.packages.${stdenv.hostPlatform.system}.nvim
inputs.agenix.packages.${stdenv.hostPlatform.system}.default
# Custom update script
(writeShellScriptBin "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
'')
];
}
# Import Desktop or Kiosk modules based on type