From bc018711c042d7b20f16a430933799f5bb5f6c5a Mon Sep 17 00:00:00 2001
From: Gregor Kleen <pngwjpgh@users.noreply.github.com>
Date: Fri, 20 Jan 2017 11:05:12 +0100
Subject: Eavesdrop dbus

---
 hel.nix | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/hel.nix b/hel.nix
index 1513a533..6a55abd0 100644
--- a/hel.nix
+++ b/hel.nix
@@ -319,6 +319,27 @@
         members = [ "gkleen" ];
       };
     };
+
+    dbus = {
+      enable = true;
+      packages = [ (pkgs.writeTextFile {
+                      name = "eavesdrop.conf";
+                      text = ''
+                        <!DOCTYPE busconfig PUBLIC
+                        "-//freedesktop//DTD D-Bus Bus Configuration 1.0//EN"
+                        "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
+                        <busconfig>
+                          <policy user="root">
+                            <allow eavesdrop="true"/>
+                            <allow eavesdrop="true" send_destination="*"/>
+                          </policy>
+                        </busconfig>
+                      '';
+                      destination = "/etc/dbus-1/system.d/eavesdrop.conf";
+                      };
+                    )
+                 ];
+    };
   };
 
   security = {
-- 
cgit v1.2.3