mcpo: add port option
This commit is contained in:
parent
529ca4d572
commit
2323c97d89
1 changed files with 7 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue