Add alias for timer services

This commit is contained in:
Yan Lin 2025-09-25 08:58:18 +02:00
parent 93e84a6675
commit e72b25df04
3 changed files with 17 additions and 0 deletions

View file

@ -140,6 +140,13 @@ docker exec -it <container> bash
systemctl list-timers
```
### Manual Timer Service Execution
- `dl-subs-yt` - Check YouTube subscriptions and download new videos
- `smart-report-now` - Run SMART disk health report manually
- `container-update-now` - Update container images manually
- `borg-backup-now` - Run backup manually
- `borg-check-now` - Run backup integrity check manually
## Notes
- Borg backups need passphrase at `/etc/borg-passphrase`

View file

@ -55,6 +55,11 @@ in
chmod +x /home/yanlin/.config/nix/scripts/container-update.sh
chmod +x /home/yanlin/.config/nix/scripts/gotify-notify.sh
'';
# Shell alias for manual execution
environment.shellAliases = {
container-update-now = "sudo systemctl start container-updater.service";
};
# Systemd service for container updates
systemd.services.container-updater = {

View file

@ -63,6 +63,11 @@ in {
# Install the wrapper script package
environment.systemPackages = [ smartReportScript ];
# Shell alias for manual execution
environment.shellAliases = {
smart-report-now = "sudo systemctl start daily-smart-report.service";
};
# Configure systemd service if enabled
systemd.services.daily-smart-report = mkIf cfg.enableSystemdService {
description = "Daily SMART Health Report";