From 2323c97d89a5dd8d9195a914d1c9cc1fdbf21ffb Mon Sep 17 00:00:00 2001 From: sid Date: Mon, 18 May 2026 18:41:07 +0200 Subject: [PATCH] mcpo: add port option --- modules/nixos/mcpo/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/nixos/mcpo/default.nix b/modules/nixos/mcpo/default.nix index 89e0e29..86e943f 100644 --- a/modules/nixos/mcpo/default.nix +++ b/modules/nixos/mcpo/default.nix @@ -28,6 +28,12 @@ in default = null; }; + port = mkOption { + type = types.port; + default = 8000; + description = "Port on which the mcpo service should listen."; + }; + user = mkOption { type = types.str; description = "The user the mcpo service will run as."; @@ -100,7 +106,7 @@ in after = [ "network.target" ]; wantedBy = [ "multi-user.target" ]; serviceConfig = { - ExecStart = "${getExe cfg.package} --config ${configFile}"; + ExecStart = "${getExe cfg.package} --port ${cfg.port} --config ${configFile}"; Restart = "on-failure"; User = cfg.user; Group = cfg.group;