From 87cdc4ea21d328afe460736d2a79096977ec2d6a Mon Sep 17 00:00:00 2001 From: mikl Date: Thu, 2 Jul 2026 13:09:40 +0300 Subject: [PATCH] fix: syncthing 2.x uses 'serve' subcommand instead of -no-browser --- home/syncthing.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/home/syncthing.nix b/home/syncthing.nix index e69de29..7566f39 100644 --- a/home/syncthing.nix +++ b/home/syncthing.nix @@ -0,0 +1,25 @@ +{ pkgs, ... }: +{ + # Syncthing - p2p file sync + # Config stored in ~/Library/Application Support/Syncthing/ (default) + # Currently syncs: music, traces + # Devices: poppy (this mac) + remote (UCWTYQI-...) + home.packages = [ pkgs.syncthing ]; + + # Autostart via launchd + # -no-browser: don't open GUI on startup + # KeepAlive: restart if crashes + # RunAtLoad: start at login + launchd.agents.syncthing = { + enable = true; + config = { + ProgramArguments = [ + "${pkgs.syncthing}/bin/syncthing" + "-no-browser" + ]; + RunAtLoad = true; + KeepAlive = true; + ProcessType = "Background"; + }; + }; +}