nixos/whitebophir: expose new option provided by whitebophir 1.8.0
This commit is contained in:
parent
5b88cabf3c
commit
b481663125
|
@ -16,6 +16,12 @@ in {
|
||||||
description = "Whitebophir package to use.";
|
description = "Whitebophir package to use.";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
listenAddress = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = "0.0.0.0";
|
||||||
|
description = "Address to listen on (use 0.0.0.0 to allow access from any address).";
|
||||||
|
};
|
||||||
|
|
||||||
port = mkOption {
|
port = mkOption {
|
||||||
type = types.port;
|
type = types.port;
|
||||||
default = 5001;
|
default = 5001;
|
||||||
|
@ -30,7 +36,8 @@ in {
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
after = [ "network.target" ];
|
after = [ "network.target" ];
|
||||||
environment = {
|
environment = {
|
||||||
PORT = "${toString cfg.port}";
|
PORT = toString cfg.port;
|
||||||
|
HOST = toString cfg.listenAddress;
|
||||||
WBO_HISTORY_DIR = "/var/lib/whitebophir";
|
WBO_HISTORY_DIR = "/var/lib/whitebophir";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue