fix: syncthing 2.x uses 'serve' subcommand instead of -no-browser
This commit is contained in:
parent
5cdc1d9ad6
commit
87cdc4ea21
1 changed files with 25 additions and 0 deletions
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Reference in a new issue