about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLDprg <71488985+LDprg@users.noreply.github.com>2024-04-03 06:11:48 +0200
committerPeter Hoeg <peter@hoeg.com>2024-04-04 01:32:45 -0700
commitf53b77fe4403a748aa3f0c2a9401f30a86c8c95b (patch)
tree9f4315f3bc108411c0cb5f427f3dfe9fba12dbbc
parente827697fd3435b458a759ef0b92de7f26624b910 (diff)
dbus-broker: Add dbus for dbus tools to environment.systemPackages
-rw-r--r--nixos/modules/services/system/dbus.nix9
1 files changed, 5 insertions, 4 deletions
diff --git a/nixos/modules/services/system/dbus.nix b/nixos/modules/services/system/dbus.nix
index 5efd19e982cee..e57a13e8de96b 100644
--- a/nixos/modules/services/system/dbus.nix
+++ b/nixos/modules/services/system/dbus.nix
@@ -101,6 +101,11 @@ in
 
       users.groups.messagebus.gid = config.ids.gids.messagebus;
 
+      # Install dbus for dbus tools even when using dbus-broker
+      environment.systemPackages = [
+        pkgs.dbus
+      ];
+
       # You still need the dbus reference implementation installed to use dbus-broker
       systemd.packages = [
         pkgs.dbus
@@ -132,10 +137,6 @@ in
     })
 
     (mkIf (cfg.implementation == "dbus") {
-      environment.systemPackages = [
-        pkgs.dbus
-      ];
-
       security.wrappers.dbus-daemon-launch-helper = {
         source = "${pkgs.dbus}/libexec/dbus-daemon-launch-helper";
         owner = "root";