what
This commit is contained in:
parent
616f310f4a
commit
1555d7b643
51 changed files with 243 additions and 231 deletions
|
@ -1,14 +1,15 @@
|
|||
{lib, ...}: let
|
||||
# TODO: unify syncthing.nix files
|
||||
let
|
||||
guiPort = 8384;
|
||||
in {
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
systemService = true;
|
||||
openDefaultPorts = true;
|
||||
guiAddress = lib.formatHostPort {
|
||||
guiAddress = let
|
||||
host = "0.0.0.0";
|
||||
port = guiPort;
|
||||
};
|
||||
port = builtins.toString guiPort;
|
||||
in "${host}:${port}";
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [guiPort];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue