From 7aa60d33eff21ccdaa31ccd5dd64196990bb3dea Mon Sep 17 00:00:00 2001 From: LLLL Colonq Date: Fri, 1 Mar 2024 22:52:43 -0500 Subject: Add test redeem message bus functionality --- flake.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index fc97f9d..7fbbcb4 100644 --- a/flake.nix +++ b/flake.nix @@ -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"; -- cgit v1.2.3