nixos/syndicate-server: remove runInDbusSession option
DBus is a mess that we shouldn't get involved in. If you need DBus then use a tool that can start DBus as it might be expected and then extract the communication endpoints with the preserve_process_environment utility. https://git.syndicate-lang.org/ehmry/syndicate_utils#preserve_process_environment
This commit is contained in:
parent
847ed4ef13
commit
33784421aa
|
@ -20,8 +20,6 @@ with lib;
|
||||||
options = {
|
options = {
|
||||||
enable = mkEnableOption "this Syndicate dataspace server instance";
|
enable = mkEnableOption "this Syndicate dataspace server instance";
|
||||||
|
|
||||||
runInDbusSession = mkEnableOption "dbus-run-session wrapper";
|
|
||||||
|
|
||||||
user = mkOption {
|
user = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
example = "jane";
|
example = "jane";
|
||||||
|
@ -62,10 +60,7 @@ with lib;
|
||||||
value = let
|
value = let
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
RuntimeDirectory = name;
|
RuntimeDirectory = name;
|
||||||
ExecStart = "${
|
ExecStart = "${cfg.package}/bin/syndicate-server --no-banner --config ${configFile}";
|
||||||
lib.optionalString cfg.runInDbusSession
|
|
||||||
"${pkgs.dbus}/bin/dbus-run-session "
|
|
||||||
}${cfg.package}/bin/syndicate-server --no-banner --config ${configFile}";
|
|
||||||
User = cfg.user;
|
User = cfg.user;
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
|
|
Loading…
Reference in New Issue