secrets: move lohr to agenix

This commit is contained in:
Antoine Martin 2022-03-11 17:26:54 +01:00
parent 3b99096af9
commit dad068ed6b
6 changed files with 13 additions and 3 deletions

View file

@ -44,9 +44,8 @@ in
"ROCKET_PORT=${toString cfg.port}"
"ROCKET_LOG_LEVEL=normal"
"LOHR_HOME=${cfg.home}"
# NOTE: secret cannot contain a '%', it's interpreted by systemd
"'LOHR_SECRET=${secrets.lohr-shared-secret}'"
];
EnvironmentFile = config.age.secrets."lohr/shared-secret".path;
ExecStart = "${lohrPkg}/bin/lohr";
StateDirectory = "lohr";
WorkingDirectory = "/var/lib/lohr";