fixed sudo bug on sub-sync
This commit is contained in:
parent
5618d312a4
commit
9b1d3dfab9
@ -907,8 +907,37 @@ in [ myPkg ];
|
|||||||
overrideStrategy = "asDropin";
|
overrideStrategy = "asDropin";
|
||||||
wantedBy = [ "multi-user.target" ];
|
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 = {
|
user = {
|
||||||
services = {
|
services = {
|
||||||
HentaiAtHome = {
|
HentaiAtHome = {
|
||||||
@ -965,21 +994,6 @@ in [ myPkg ];
|
|||||||
ExecStart = "${jawzTasks}/bin/tasks";
|
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 {
|
qbit_manage = let qbit_dir = "/home/jawz/Development/Git/qbit_manage"; in {
|
||||||
restartIfChanged = true;
|
restartIfChanged = true;
|
||||||
description = "Tidy up my torrents";
|
description = "Tidy up my torrents";
|
||||||
@ -1012,14 +1026,6 @@ in [ myPkg ];
|
|||||||
OnCalendar = "00:30";
|
OnCalendar = "00:30";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
sub-sync = {
|
|
||||||
enable = true;
|
|
||||||
description = "syncronizes subtitles downloaded & modified today";
|
|
||||||
wantedBy = [ "timers.target" ];
|
|
||||||
timerConfig = {
|
|
||||||
OnCalendar = "22:00";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
qbit_manage = {
|
qbit_manage = {
|
||||||
enable = true;
|
enable = true;
|
||||||
description = "Tidy up my torrents";
|
description = "Tidy up my torrents";
|
||||||
|
|||||||
@ -235,7 +235,7 @@ in {
|
|||||||
(builtins.readFile ../scripts/nextcloud-cronjob.sh);
|
(builtins.readFile ../scripts/nextcloud-cronjob.sh);
|
||||||
in {
|
in {
|
||||||
description = "Runs various nextcloud-related cronjobs";
|
description = "Runs various nextcloud-related cronjobs";
|
||||||
wantedBy = [ "default.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
path = [ pkgs.bash jawzNextcloudCronjob ];
|
path = [ pkgs.bash jawzNextcloudCronjob ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user