fixed sudo bug on sub-sync

This commit is contained in:
Danilo Reyes 2024-01-07 04:47:51 -06:00
parent 5618d312a4
commit 9b1d3dfab9
2 changed files with 31 additions and 25 deletions

View File

@ -907,8 +907,37 @@ 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";
};
};
};
timers = {
sub-sync = {
enable = true;
description = "syncronizes subtitles downloaded & modified today";
wantedBy = [ "timers.target" ];
timerConfig = {
OnCalendar = "22:00";
};
};
};
timers = { };
user = {
services = {
HentaiAtHome = {
@ -965,21 +994,6 @@ in [ myPkg ];
ExecStart = "${jawzTasks}/bin/tasks";
};
};
sub-sync = {
restartIfChanged = true;
description = "syncronizes subtitles downloaded & modified today";
wantedBy = [ "default.target" ];
path = [
pkgs.bash
pkgs.nix
jawzSubs
];
serviceConfig = {
Restart = "on-failure";
RestartSec = 30;
ExecStart = "${jawzSubs}/bin/sub-sync all";
};
};
qbit_manage = let qbit_dir = "/home/jawz/Development/Git/qbit_manage"; in {
restartIfChanged = true;
description = "Tidy up my torrents";
@ -1012,14 +1026,6 @@ in [ myPkg ];
OnCalendar = "00:30";
};
};
sub-sync = {
enable = true;
description = "syncronizes subtitles downloaded & modified today";
wantedBy = [ "timers.target" ];
timerConfig = {
OnCalendar = "22:00";
};
};
qbit_manage = {
enable = true;
description = "Tidy up my torrents";

View File

@ -235,7 +235,7 @@ in {
(builtins.readFile ../scripts/nextcloud-cronjob.sh);
in {
description = "Runs various nextcloud-related cronjobs";
wantedBy = [ "default.target" ];
wantedBy = [ "multi-user.target" ];
path = [ pkgs.bash jawzNextcloudCronjob ];
serviceConfig = {
Restart = "on-failure";