subsync adjustments, gonna deprecate
This commit is contained in:
parent
9b1d3dfab9
commit
75f7e404ba
@ -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 = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user