2024-01-22 16:44:51 +03:00
|
|
|
{ config, pkgs, inputs, ... }: {
|
|
|
|
sops.secrets.yandex-token.sopsFile = inputs.self.secretsDir + /home-hypervisor/yandex.yaml;
|
2023-03-23 01:58:10 +03:00
|
|
|
|
|
|
|
systemd.services.yandex-db = {
|
|
|
|
description = "Gathers data on rides taken via Yandex Taxi.";
|
|
|
|
serviceConfig = {
|
|
|
|
Type = "oneshot";
|
2024-01-22 16:44:51 +03:00
|
|
|
ExecStart = "${pkgs.yandex-taxi-py} ${config.sops.secrets.yandex-token.path}";
|
2023-03-23 01:58:10 +03:00
|
|
|
};
|
|
|
|
startAt = "*:0/15";
|
|
|
|
};
|
|
|
|
}
|