alyssum/home.syncthing: set proper defaults
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-17 21:14:47 +10:00
parent 5c13051b4b
commit 907f2cabca
Signed by: cilly
GPG key ID: 6500251E087653C9

View file

@ -4,6 +4,8 @@ let
me.binds."/home/${user}/.config/syncthing" = "${user}/syncthing/config"; me.binds."/home/${user}/.config/syncthing" = "${user}/syncthing/config";
me.binds."/home/${user}/.local/state/syncthing" = "${user}/syncthing/state"; me.binds."/home/${user}/.local/state/syncthing" = "${user}/syncthing/state";
systemd.tmpfiles.rules = [ "d /flower/syncthing/${user} 700 ${user} users" ];
users.users.${user} = { users.users.${user} = {
hashedPasswordFile = config.age.secrets.passwd.path; hashedPasswordFile = config.age.secrets.passwd.path;
isNormalUser = true; isNormalUser = true;
@ -18,6 +20,12 @@ let
services.syncthing = { services.syncthing = {
enable = true; enable = true;
guiAddress = "[::]:${toString port}"; guiAddress = "[::]:${toString port}";
options.listenAddresses = [
"tcp://0.0.0.0:2${toString port}"
"quic://0.0.0.0:2${toString port}"
"dynamic+https://relays.syncthing.net/endpoint"
];
settings.defaults.folder.path = "/flower/syncthing/${user}";
}; };
}; };
}; };