library-report + manage-library fixes + timer

This commit is contained in:
Danilo Reyes 2024-11-06 12:53:02 -06:00
parent c5155d3117
commit 31dea22e57
3 changed files with 13 additions and 1 deletions

View File

@ -24,6 +24,7 @@
ffmpreg.enable = true;
ffmpeg4discord.enable = true;
manage-library.enable = true;
library-report.enable = true;
};
units = {
download.enable = false;

View File

@ -86,7 +86,7 @@
);
"download@push" = lib.mkIf config.my.units.download.enable (downloadTimer "*:0/5" 30 // { });
"download@manga" = lib.mkIf config.my.units.downloadManga.enable (
downloadTimer "Mon,Fri *-*-* 03:08:00" 30 // { }
downloadTimer "*-*-* 03:08:00" 30 // { }
);
# "download@kemono" = downloadTimer
# "*-*-1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31 18:06:00" 60 // { };

View File

@ -0,0 +1,11 @@
{ pkgs, lib, ... }:
{
imports = [ ./base.nix ];
config.my.scripts.library-report = {
enable = lib.mkDefault false;
install = true;
service = false;
name = "library-report";
package = pkgs.writeScriptBin "library-report" (builtins.readFile ../../scripts/library-report.sh);
};
}