nixos/shellhub-agent: use new configuration variables

The old variables still work but will eventually stop to be supported so
move to the new ones.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
This commit is contained in:
Otavio Salvador 2022-04-07 18:36:38 -03:00
parent a62471fc65
commit 60158bfc22

View file

@ -68,9 +68,9 @@ in
"time-sync.target"
];
environment.SERVER_ADDRESS = cfg.server;
environment.PRIVATE_KEY = cfg.privateKey;
environment.TENANT_ID = cfg.tenantId;
environment.SHELLHUB_SERVER_ADDRESS = cfg.server;
environment.SHELLHUB_PRIVATE_KEY = cfg.privateKey;
environment.SHELLHUB_TENANT_ID = cfg.tenantId;
serviceConfig = {
# The service starts sessions for different users.