roles/syncthingserver: use correct toGNUCommandLine flags

This commit is contained in:
2025-10-31 18:30:25 -07:00
parent 35485fb36d
commit 9464d9c3ac

View File

@@ -68,5 +68,19 @@ in
22000
21027
];
systemd.services.syncthing.serviceConfig.ExecStart =
let
args = lib.escapeShellArgs (
(lib.cli.toGNUCommandLine { } {
"no-browser" = true;
"gui-address" = "unix://" + config.services.syncthing.guiAddress;
"config" = config.services.syncthing.configDir;
"data" = config.services.syncthing.databaseDir;
})
++ config.services.syncthing.extraFlags
);
in
lib.mkForce "${lib.getExe config.services.syncthing.package} ${args}";
};
}