summary refs log tree commit diff
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2024-12-29 21:18:26 +0100
committerMel <einebeere@gmail.com>2024-12-29 21:18:26 +0100
commitc50acea960b3f90516e2d8b568d0e7ef19a8ba16 (patch)
tree5169cd82005f9a262cc680aaef5a639e97bd3123
parentfff6a9643593941ddfbe5a6cf7a72ea95c0e597a (diff)
downloadspecimen-c50acea960b3f90516e2d8b568d0e7ef19a8ba16.tar.zst
specimen-c50acea960b3f90516e2d8b568d0e7ef19a8ba16.zip
Stringify port for service exec, and pass through list to firewall
Signed-off-by: Mel <einebeere@gmail.com>
-rw-r--r--application/module.nix4
1 files 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}";
       };
     };
   };