From fe64d3ad8187590be47e71aa229c4cf8233d5710 Mon Sep 17 00:00:00 2001 From: niten Date: Sat, 22 Jul 2023 10:38:50 -0700 Subject: [PATCH] Formatting --- tesla-mate-container.nix | 30 +++++++++++++----------------- 1 file changed, 13 insertions(+), 17 deletions(-) diff --git a/tesla-mate-container.nix b/tesla-mate-container.nix index 7e10c42..86ef554 100644 --- a/tesla-mate-container.nix +++ b/tesla-mate-container.nix @@ -143,23 +143,19 @@ in { }; }; - virtualisation = { - arion = { - projects.teslamate.settings = let - teslaMateImage = makeTeslaMateImage { - teslaMateImage = cfg.images.tesla-mate; - postgresImage = cfg.images.postgres; - grafanaImage = cfg.images.grafana; - stateDirectory = cfg.state-directory; - teslaMateEnvFile = hostSecrets.teslaMateEnv.target-file; - postgresEnvFile = hostSecrets.teslaMatePostgresEnv.target-file; - grafanaEnvFile = hostSecrets.teslaMateGrafanaEnv.target-file; - teslaMateUid = config.users.users.tesla-mate.uid; - teslaMatePostgresUid = config.users.users.tesla-mate-postgres.uid; - teslaMateGrafanaUid = config.users.users.tesla-mate-grafana.uid; - }; - in { imports = [ teslaMateImage ]; }; + virtualisation.arion.projects.teslamate.settings = let + teslaMateImage = makeTeslaMateImage { + teslaMateImage = cfg.images.tesla-mate; + postgresImage = cfg.images.postgres; + grafanaImage = cfg.images.grafana; + stateDirectory = cfg.state-directory; + teslaMateEnvFile = hostSecrets.teslaMateEnv.target-file; + postgresEnvFile = hostSecrets.teslaMatePostgresEnv.target-file; + grafanaEnvFile = hostSecrets.teslaMateGrafanaEnv.target-file; + teslaMateUid = config.users.users.tesla-mate.uid; + teslaMatePostgresUid = config.users.users.tesla-mate-postgres.uid; + teslaMateGrafanaUid = config.users.users.tesla-mate-grafana.uid; }; - }; + in { imports = [ teslaMateImage ]; }; }; }