mirror of
https://github.com/lightly-toasted/nix-config.git
synced 2025-12-10 07:59:43 +00:00
- Add environment and environmentFile options to runit module to support environment variables - Add opengist runit service that uses these options
20 lines
382 B
Nix
20 lines
382 B
Nix
{ pkgs, rootPath, ... }:
|
|
|
|
{
|
|
runit.services.opengist = {
|
|
script = ''
|
|
exec ${pkgs.opengist}/bin/opengist start
|
|
'';
|
|
|
|
environment = {
|
|
OG_HTTP_HOST = "127.0.0.1";
|
|
OG_HTTP_PORT = "6157";
|
|
OG_SSH_HOST = "127.0.0.1";
|
|
OG_SSH_PORT = "6522";
|
|
};
|
|
|
|
environmentFile = rootPath + /secrets/gitcrypt/opengist.env;
|
|
|
|
log.enable = true;
|
|
};
|
|
}
|