sub-sync now takes date argument and added to systemd
This commit is contained in:
parent
c71adc0b3a
commit
ca5fa61221
@ -47,6 +47,8 @@ let
|
|||||||
"manage-library" (builtins.readFile ../scripts/manage-library.sh);
|
"manage-library" (builtins.readFile ../scripts/manage-library.sh);
|
||||||
jawzTasks = pkgs.writeScriptBin
|
jawzTasks = pkgs.writeScriptBin
|
||||||
"tasks" (builtins.readFile ../scripts/tasks.sh);
|
"tasks" (builtins.readFile ../scripts/tasks.sh);
|
||||||
|
jawzSubs = pkgs.writeScriptBin
|
||||||
|
"sub-sync" (builtins.readFile ../scripts/sub-sync.sh);
|
||||||
in
|
in
|
||||||
{ # Remember to close this bracket at the end of the document
|
{ # Remember to close this bracket at the end of the document
|
||||||
#+end_src
|
#+end_src
|
||||||
@ -395,6 +397,7 @@ Here I compile my own scripts into binaries
|
|||||||
#+begin_src nix
|
#+begin_src nix
|
||||||
jawzManageLibrary
|
jawzManageLibrary
|
||||||
jawzTasks
|
jawzTasks
|
||||||
|
jawzSubs
|
||||||
(writeScriptBin "ffmpeg4discord" (builtins.readFile ../scripts/ffmpeg4discord.py))
|
(writeScriptBin "ffmpeg4discord" (builtins.readFile ../scripts/ffmpeg4discord.py))
|
||||||
(writeScriptBin "ffmpreg" (builtins.readFile ../scripts/ffmpreg.sh))
|
(writeScriptBin "ffmpreg" (builtins.readFile ../scripts/ffmpreg.sh))
|
||||||
(writeScriptBin "chat-dl" (builtins.readFile ../scripts/chat-dl.sh))
|
(writeScriptBin "chat-dl" (builtins.readFile ../scripts/chat-dl.sh))
|
||||||
@ -961,6 +964,21 @@ 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";
|
||||||
@ -985,6 +1003,22 @@ in [ myPkg ];
|
|||||||
OnCalendar = "*:0/10";
|
OnCalendar = "*:0/10";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
manage-library = {
|
||||||
|
enable = true;
|
||||||
|
description = "Run the manage library bash script";
|
||||||
|
wantedBy = [ "timers.target" ];
|
||||||
|
timerConfig = {
|
||||||
|
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";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user