feat[client]: initialize syncthingtray on install

This commit is contained in:
Leon Schwarzäugl 2025-11-13 23:41:56 +01:00
parent f950ea97be
commit c098800c79
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
9 changed files with 326 additions and 19 deletions

View file

@ -2,12 +2,15 @@
let
inherit (config.swarselsystems) mainUser homeDir;
devices = config.swarselsystems.syncthing.syncDevices;
servicePort = 8384;
in
{
options.swarselmodules.syncthing = lib.mkEnableOption "syncthing config";
config = lib.mkIf config.swarselmodules.syncthing {
services.syncthing = {
enable = true;
systemService = true;
guiAddress = "127.0.0.1:${builtins.toString servicePort}";
package = pkgs.syncthing;
user = mainUser;
dataDir = homeDir;