syncthing: Fix for syncthing v2 (#7762) (#7766)

This commit is contained in:
Damien Cassou
2025-09-07 16:07:58 +02:00
committed by GitHub
parent f56bf065f9
commit a7408ba6da
2 changed files with 6 additions and 6 deletions

View File

@@ -213,11 +213,11 @@ let
defaultSyncthingArgs = [
"${syncthing}"
"-no-browser"
"-no-restart"
"-no-upgrade"
"-gui-address=${if isUnixGui then "unix://" else ""}${cfg.guiAddress}"
"-logflags=0"
"serve"
"--no-browser"
"--no-restart"
"--no-upgrade"
"--gui-address=${if isUnixGui then "unix://" else ""}${cfg.guiAddress}"
];
syncthingArgs = defaultSyncthingArgs ++ cfg.extraOptions;

View File

@@ -19,7 +19,7 @@ lib.mkMerge [
nmt.script = ''
assertFileExists home-files/.config/systemd/user/syncthing.service
assertFileContains home-files/.config/systemd/user/syncthing.service \
"ExecStart=@syncthing@/bin/syncthing -no-browser -no-restart -no-upgrade '-gui-address=127.0.0.1:8384' '-logflags=0' -foo '-bar \"baz\"'"
"ExecStart=@syncthing@/bin/syncthing serve --no-browser --no-restart --no-upgrade '--gui-address=127.0.0.1:8384' -foo '-bar \"baz\"'"
'';
})