subsync adjustments, gonna deprecate

This commit is contained in:
2024-01-07 14:54:55 -06:00
parent 9b1d3dfab9
commit 75f7e404ba

View File

@@ -907,36 +907,38 @@ in [ myPkg ];
overrideStrategy = "asDropin"; overrideStrategy = "asDropin";
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
}; };
sub-sync = { # sub-sync = {
restartIfChanged = true; # restartIfChanged = true;
description = "syncronizes subtitles downloaded & modified today"; # description = "syncronizes subtitles downloaded & modified today";
wantedBy = [ "multi-user.target" ]; # wantedBy = [ "default.target" ];
path = [ # path = [
pkgs.bash # pkgs.bash
pkgs.fd # pkgs.fd
pkgs.ripgrep # pkgs.ripgrep
pkgs.file # pkgs.file
pkgs.alass # pkgs.alass
pkgs.ffmpeg # pkgs.ffmpeg
pkgs.gum # pkgs.gum
jawzSubs # jawzSubs
]; # ];
serviceConfig = { # serviceConfig = {
Restart = "on-failure"; # Restart = "on-failure";
RestartSec = 30; # RestartSec = 30;
ExecStart = "${jawzSubs}/bin/sub-sync all"; # ExecStart = "${jawzSubs}/bin/sub-sync all";
}; # Type = "forking";
}; # User = "root";
# };
# };
}; };
timers = { timers = {
sub-sync = { # sub-sync = {
enable = true; # enable = true;
description = "syncronizes subtitles downloaded & modified today"; # description = "syncronizes subtitles downloaded & modified today";
wantedBy = [ "timers.target" ]; # wantedBy = [ "timers.target" ];
timerConfig = { # timerConfig = {
OnCalendar = "22:00"; # OnCalendar = "22:00";
}; # };
}; # };
}; };
user = { user = {
services = { services = {