decisions: add timer for tex to db

This commit is contained in:
quitte 2024-02-04 13:07:41 +01:00
parent 81a83d7989
commit 594e672df4

View file

@ -30,4 +30,23 @@ in
''; '';
}; };
}; };
systemd.timers."decisions-to-db" = {
wantedBy = [ "timers.target" ];
timerConfig = {
OnCalendar = "01:11:00";
Unit = "decisions-to-db.service";
};
};
systemd.services."decisions-to-db" = {
script = ''
set -eu
${pkgs.docker}/bin/docker exec decicions python tex_to_db.py
'';
serviceConfig = {
Type = "oneshot";
User = "root";
};
};
} }