paperless: update hostingde fetcher binary
This commit is contained in:
parent
e54e5cbc54
commit
4fd587788b
|
@ -101,12 +101,13 @@ in {
|
||||||
age.secrets."hosting-de-invoice-sync-api-key" = {
|
age.secrets."hosting-de-invoice-sync-api-key" = {
|
||||||
file = "${flake.self}/secrets/hosting-de-invoice-sync-api-key.age";
|
file = "${flake.self}/secrets/hosting-de-invoice-sync-api-key.age";
|
||||||
mode = "400";
|
mode = "400";
|
||||||
|
owner = psCfg.user.name;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.cron = {
|
services.cron = {
|
||||||
enable = true;
|
enable = true;
|
||||||
systemCronJobs = [
|
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 = [
|
systemd.tmpfiles.rules = [
|
||||||
"d '${backupDir}' 0700 ${psCfg.user.name} users - -"
|
"d '${backupDir}' 0700 ${psCfg.user.name} users - -"
|
||||||
|
"d /tmp/paperless 0700 ${psCfg.user.name} users - -"
|
||||||
];
|
];
|
||||||
|
|
||||||
age.secrets."rclone-pie.conf" = {
|
age.secrets."rclone-pie.conf" = {
|
||||||
|
|
|
@ -3,15 +3,13 @@ self: self.deno2nix.mkExecutable {
|
||||||
version = "0.1.0";
|
version = "0.1.0";
|
||||||
|
|
||||||
src = ./.;
|
src = ./.;
|
||||||
bin = "simple";
|
bin = "fetch-hostingde-invoices";
|
||||||
|
|
||||||
entrypoint = "./main.ts";
|
entrypoint = "./main.ts";
|
||||||
lockfile = "./deno.lock";
|
lockfile = "./deno.lock";
|
||||||
config = "./deno.json";
|
config = "./deno.json";
|
||||||
|
|
||||||
allow = {
|
allow = {
|
||||||
write = true;
|
all = true;
|
||||||
env = "HOSTINGDE_API_KEY";
|
|
||||||
net = true;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue