roles/syncthingserver: use correct toGNUCommandLine flags
This commit is contained in:
@@ -68,5 +68,19 @@ in
|
|||||||
22000
|
22000
|
||||||
21027
|
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}";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user