services/syncthing: listen on all ports for headless
Some checks are pending
CI / Build linux-lava for x86_64-linux (push) Waiting to run

This commit is contained in:
Cilly Leang 2026-06-06 20:33:19 +10:00
parent abe0027e5d
commit 72078aad6c
Signed by: cilly
GPG key ID: 6500251E087653C9

View file

@ -1,7 +1,8 @@
{ config, ... }:
let
dir = "/persist/shared/.syncthing";
uid = toString config.services.syncthing.user;
user = if config.me.gui then "rin" else "hana";
uid = toString config.users.users."${user}".uid;
gid = toString config.users.groups.users.gid;
in
{
@ -13,9 +14,10 @@ in
services.syncthing = {
enable = true;
openDefaultPorts = true;
user = "rin";
user = user;
group = "users";
dataDir = "/persist/shared/.syncthing/data";
configDir = "/persist/shared/.syncthing/config";
guiAddress = if config.me.gui then "127.0.0.1:8384" else "";
};
}