Change ownership of state dirs to relevant users

This commit is contained in:
niten 2023-07-22 15:46:55 -07:00
parent d7b2bd21ab
commit 71a79c853b
1 changed files with 12 additions and 0 deletions

View File

@ -170,6 +170,18 @@ in {
}; };
}; };
systemd.tmpfiles.rules = [
"d ${cfg.state-directory}/import 0700 ${
toString config.users.users.tesla-mate.uid
} root - -"
"d ${cfg.state-directory}/postgres 0700 ${
toString config.users.users.tesla-mate-postgres.uid
} root - -"
"d ${cfg.state-directory}/grafana 0700 ${
toString config.users.users.tesla-mate-grafana.uid
} root - -"
];
virtualisation.arion.projects.teslamate.settings = let virtualisation.arion.projects.teslamate.settings = let
teslaMateImage = makeTeslaMateImage { teslaMateImage = makeTeslaMateImage {
teslaMateImage = cfg.images.tesla-mate; teslaMateImage = cfg.images.tesla-mate;