Add dependencies to teslamate

This commit is contained in:
niten 2023-09-25 17:24:49 -07:00
parent 95178c069a
commit cd23ae3bc9
1 changed files with 20 additions and 11 deletions

View File

@ -171,17 +171,26 @@ in {
}; };
}; };
systemd.tmpfiles.rules = [ systemd = {
"d ${cfg.state-directory}/import 0700 ${ tmpfiles.rules = [
toString config.users.users.tesla-mate.uid "d ${cfg.state-directory}/import 0700 ${
} root - -" toString config.users.users.tesla-mate.uid
"d ${cfg.state-directory}/postgres 0700 ${ } root - -"
toString config.users.users.tesla-mate-postgres.uid "d ${cfg.state-directory}/postgres 0700 ${
} root - -" toString config.users.users.tesla-mate-postgres.uid
"d ${cfg.state-directory}/grafana 0700 ${ } root - -"
toString config.users.users.tesla-mate-grafana.uid "d ${cfg.state-directory}/grafana 0700 ${
} root - -" toString config.users.users.tesla-mate-grafana.uid
]; } root - -"
];
services.arion-teslamate = {
after =
[ "fudo-secrets.target" "network-online.target" "podman.service" ];
requires = [ "network-online.target" "podman.service" ];
};
};
virtualisation.arion.projects.teslamate.settings = let virtualisation.arion.projects.teslamate.settings = let
teslaMateImage = makeTeslaMateImage { teslaMateImage = makeTeslaMateImage {