nixos/modules: services.syncthing add guiAddress parameter

This commit is contained in:
Ingolf Wagner 2018-10-09 22:13:58 +02:00
parent 2c881054f8
commit fa6c8ec2a7
No known key found for this signature in database
GPG Key ID: 2BCEF11C651CB1F3

View File

@ -16,6 +16,14 @@ in {
available on http://127.0.0.1:8384/.
'';
guiAddress = mkOption {
type = types.string;
default = "127.0.0.1:8384";
description = ''
Address to serve the GUI.
'';
};
systemService = mkOption {
type = types.bool;
default = true;
@ -132,7 +140,12 @@ in {
User = cfg.user;
Group = cfg.group;
PermissionsStartOnly = true;
ExecStart = "${cfg.package}/bin/syncthing -no-browser -home=${cfg.dataDir}";
ExecStart = ''
${cfg.package}/bin/syncthing \
-no-browser \
-gui-address=${cfg.guiAddress} \
-home=${cfg.dataDir}
'';
};
};