From 33784421aa5a4236997f9cc922c262035259f85c Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Wed, 24 May 2023 08:44:14 +0100 Subject: [PATCH] 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 --- nixos/syndicate-server.nix | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/nixos/syndicate-server.nix b/nixos/syndicate-server.nix index 0777764..51305e0 100644 --- a/nixos/syndicate-server.nix +++ b/nixos/syndicate-server.nix @@ -20,8 +20,6 @@ with lib; options = { enable = mkEnableOption "this Syndicate dataspace server instance"; - runInDbusSession = mkEnableOption "dbus-run-session wrapper"; - user = mkOption { type = types.str; example = "jane"; @@ -62,10 +60,7 @@ with lib; value = let serviceConfig = { RuntimeDirectory = name; - ExecStart = "${ - lib.optionalString cfg.runInDbusSession - "${pkgs.dbus}/bin/dbus-run-session " - }${cfg.package}/bin/syndicate-server --no-banner --config ${configFile}"; + ExecStart = "${cfg.package}/bin/syndicate-server --no-banner --config ${configFile}"; User = cfg.user; }; in {