Add alias for timer services
This commit is contained in:
parent
93e84a6675
commit
e72b25df04
3 changed files with 17 additions and 0 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue