subsync adjustments, gonna deprecate

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

View File

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