diff options
author | Ingolf Wagner <palo@pepe> | 2018-10-09 22:13:58 +0200 |
---|---|---|
committer | Ingolf Wagner <palo@pepe> | 2018-10-14 00:52:25 +0200 |
commit | fa6c8ec2a7fc71f05c2687f3e6411eae34831fdf (patch) | |
tree | 0f88a737514b7dfc3797213fe1e5046f096f2a3f /nixos/modules/services/networking | |
parent | 2c881054f8ac71a6373e9b7d275cc180bd212ce1 (diff) | |
download | nixlib-fa6c8ec2a7fc71f05c2687f3e6411eae34831fdf.tar nixlib-fa6c8ec2a7fc71f05c2687f3e6411eae34831fdf.tar.gz nixlib-fa6c8ec2a7fc71f05c2687f3e6411eae34831fdf.tar.bz2 nixlib-fa6c8ec2a7fc71f05c2687f3e6411eae34831fdf.tar.lz nixlib-fa6c8ec2a7fc71f05c2687f3e6411eae34831fdf.tar.xz nixlib-fa6c8ec2a7fc71f05c2687f3e6411eae34831fdf.tar.zst nixlib-fa6c8ec2a7fc71f05c2687f3e6411eae34831fdf.zip |
nixos/modules: services.syncthing add guiAddress parameter
Diffstat (limited to 'nixos/modules/services/networking')
-rw-r--r-- | nixos/modules/services/networking/syncthing.nix | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/syncthing.nix b/nixos/modules/services/networking/syncthing.nix index c610b3b66606..cf21aa9eb70f 100644 --- a/nixos/modules/services/networking/syncthing.nix +++ b/nixos/modules/services/networking/syncthing.nix @@ -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} + ''; }; }; |