diff options
| author | LLLL Colonq <llll@colonq> | 2024-03-01 22:52:43 -0500 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2024-03-01 22:52:43 -0500 |
| commit | 7aa60d33eff21ccdaa31ccd5dd64196990bb3dea (patch) | |
| tree | 516bbac3c84c171cd364672d7c15ca320839c5e2 /flake.nix | |
| parent | 88e2726fc1fc6cec2b9e63526ce4c0a1a04a2e98 (diff) | |
Add test redeem message bus functionality
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -213,6 +213,16 @@ in { options.colonq.services.fig-frontend = { enable = lib.mkEnableOption "Enable the fig web frontend"; + busHost = lib.mkOption { + type = lib.types.str; + default = "127.0.0.1"; + description = "Message bus port"; + }; + busPort = lib.mkOption { + type = lib.types.port; + default = 32050; + description = "Address of message bus"; + }; configFile = lib.mkOption { type = lib.types.path; description = "Path to config file"; @@ -229,7 +239,7 @@ wantedBy = ["multi-user.target"]; serviceConfig = { Restart = "on-failure"; - ExecStart = "${haskellPackages.fig-frontend}/bin/fig-frontend --config ${cfg.configFile}"; + ExecStart = "${haskellPackages.fig-frontend}/bin/fig-frontend --bus-host ${cfg.busHost} --bus-port ${toString cfg.busPort} --config ${cfg.configFile}"; DynamicUser = "yes"; RuntimeDirectory = "colonq.fig-frontend"; RuntimeDirectoryMode = "0755"; |
