mirror of
https://github.com/lightly-toasted/nix-config.git
synced 2025-12-10 03:49:44 +00:00
feat(y2q): add opengist
- Add environment and environmentFile options to runit module to support environment variables - Add opengist runit service that uses these options
This commit is contained in:
parent
bd9cb2afff
commit
3b3476c110
5 changed files with 69 additions and 16 deletions
|
|
@ -3,8 +3,7 @@
|
|||
{
|
||||
runit.services.glances = {
|
||||
script = ''
|
||||
#!/bin/bash
|
||||
${pkgs.glances}/bin/glances -w
|
||||
exec ${pkgs.glances}/bin/glances -w
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
20
home/modules/runit/services/opengist.nix
Normal file
20
home/modules/runit/services/opengist.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{ 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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue