From 31dea22e576b522fbcec4de16969163d60969e00 Mon Sep 17 00:00:00 2001 From: Danilo Reyes Date: Wed, 6 Nov 2024 12:53:02 -0600 Subject: [PATCH] library-report + manage-library fixes + timer --- hosts/server/configuration.nix | 1 + modules/scripts/download.nix | 2 +- modules/scripts/library-report.nix | 11 +++++++++++ 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 modules/scripts/library-report.nix diff --git a/hosts/server/configuration.nix b/hosts/server/configuration.nix index 7a175dc..935bb31 100644 --- a/hosts/server/configuration.nix +++ b/hosts/server/configuration.nix @@ -24,6 +24,7 @@ ffmpreg.enable = true; ffmpeg4discord.enable = true; manage-library.enable = true; + library-report.enable = true; }; units = { download.enable = false; diff --git a/modules/scripts/download.nix b/modules/scripts/download.nix index 0cfea5b..6aed553 100644 --- a/modules/scripts/download.nix +++ b/modules/scripts/download.nix @@ -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 // { }; diff --git a/modules/scripts/library-report.nix b/modules/scripts/library-report.nix new file mode 100644 index 0000000..bd5296e --- /dev/null +++ b/modules/scripts/library-report.nix @@ -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); + }; +}