From c50acea960b3f90516e2d8b568d0e7ef19a8ba16 Mon Sep 17 00:00:00 2001 From: Mel Date: Sun, 29 Dec 2024 21:18:26 +0100 Subject: Stringify port for service exec, and pass through list to firewall Signed-off-by: Mel --- application/module.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/module.nix b/application/module.nix index 238ec5e..5f07245 100644 --- a/application/module.nix +++ b/application/module.nix @@ -47,7 +47,7 @@ in }; config = mkIf cfg.enable { - networking.firewall.allowedTCPPorts = mkIf cfg.openFirewall cfg.port; + networking.firewall.allowedTCPPorts = mkIf cfg.openFirewall [ cfg.port ]; systemd.services.specimen = { description = "specimen application service"; @@ -59,7 +59,7 @@ in DynamicUser = true; Type = "exec"; Restart = "always"; - ExecStart = "${cfg.package}/bin/specimen -address ${cfg.listenAddress} -port ${cfg.port} -name ${cfg.namePath}"; + ExecStart = "${cfg.package}/bin/specimen -address ${cfg.listenAddress} -port ${toString cfg.port} -name ${cfg.namePath}"; }; }; }; -- cgit 1.4.1