paperless: update hostingde fetcher binary

feat/authelia
Benjamin Yule Bädorf 2024-03-19 18:33:13 +01:00
parent e54e5cbc54
commit 4fd587788b
Signed by: b12f
GPG Key ID: 729956E1124F8F26
2 changed files with 5 additions and 5 deletions

View File

@ -101,12 +101,13 @@ in {
age.secrets."hosting-de-invoice-sync-api-key" = {
file = "${flake.self}/secrets/hosting-de-invoice-sync-api-key.age";
mode = "400";
owner = psCfg.user.name;
};
services.cron = {
enable = true;
systemCronJobs = [
"30 1 * * * root ${pkgs.fetch-hostingde-invoices}/bin/fetch-hostingde-invoices '${config.age.secrets."hosting-de-invoice-sync-api-key".path}' '${consumptionDir}'"
"30 1 * * * ${psCfg.user.name} ${pkgs.fetch-hostingde-invoices}/bin/fetch-hostingde-invoices '${config.age.secrets."hosting-de-invoice-sync-api-key".path}' '${consumptionDir}'"
];
};
@ -116,6 +117,7 @@ in {
systemd.tmpfiles.rules = [
"d '${backupDir}' 0700 ${psCfg.user.name} users - -"
"d /tmp/paperless 0700 ${psCfg.user.name} users - -"
];
age.secrets."rclone-pie.conf" = {

View File

@ -3,15 +3,13 @@ self: self.deno2nix.mkExecutable {
version = "0.1.0";
src = ./.;
bin = "simple";
bin = "fetch-hostingde-invoices";
entrypoint = "./main.ts";
lockfile = "./deno.lock";
config = "./deno.json";
allow = {
write = true;
env = "HOSTINGDE_API_KEY";
net = true;
all = true;
};
}