diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2022-04-08 09:33:02 -0300 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2022-04-10 13:32:10 -0300 |
commit | d7a0f56c6a2a19c9e6a61716ce5315412b61c2f6 (patch) | |
tree | 791041d0097c6ff75ca4fb46c90855b0f8609fa6 | |
parent | bd3b046ac85758208b362e0b4234fb0466cd5cbd (diff) | |
download | nixpkgs-d7a0f56c6a2a19c9e6a61716ce5315412b61c2f6.tar nixpkgs-d7a0f56c6a2a19c9e6a61716ce5315412b61c2f6.tar.gz nixpkgs-d7a0f56c6a2a19c9e6a61716ce5315412b61c2f6.tar.bz2 nixpkgs-d7a0f56c6a2a19c9e6a61716ce5315412b61c2f6.tar.lz nixpkgs-d7a0f56c6a2a19c9e6a61716ce5315412b61c2f6.tar.xz nixpkgs-d7a0f56c6a2a19c9e6a61716ce5315412b61c2f6.tar.zst nixpkgs-d7a0f56c6a2a19c9e6a61716ce5315412b61c2f6.zip |
nixos/shellhub-agent: avoid code duplication for environment
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
-rw-r--r-- | nixos/modules/services/networking/shellhub-agent.nix | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/nixos/modules/services/networking/shellhub-agent.nix b/nixos/modules/services/networking/shellhub-agent.nix index ce0a6d99927..4ec59754bfb 100644 --- a/nixos/modules/services/networking/shellhub-agent.nix +++ b/nixos/modules/services/networking/shellhub-agent.nix @@ -80,11 +80,13 @@ in "time-sync.target" ]; - environment.SHELLHUB_SERVER_ADDRESS = cfg.server; - environment.SHELLHUB_PRIVATE_KEY = cfg.privateKey; - environment.SHELLHUB_TENANT_ID = cfg.tenantId; - environment.SHELLHUB_PREFERRED_HOSTNAME = cfg.preferredHostname; - environment.SHELLHUB_KEEPALIVE_INTERVAL = toString cfg.keepAliveInterval; + environment = { + SHELLHUB_SERVER_ADDRESS = cfg.server; + SHELLHUB_PRIVATE_KEY = cfg.privateKey; + SHELLHUB_TENANT_ID = cfg.tenantId; + SHELLHUB_KEEPALIVE_INTERVAL = toString cfg.keepAliveInterval; + SHELLHUB_PREFERRED_HOSTNAME = cfg.preferredHostname; + }; serviceConfig = { # The service starts sessions for different users. |