summaryrefslogtreecommitdiff
path: root/hel.nix
diff options
context:
space:
mode:
authorGregor Kleen <pngwjpgh@users.noreply.github.com>2017-01-20 11:05:12 +0100
committerGregor Kleen <pngwjpgh@users.noreply.github.com>2017-01-20 11:05:12 +0100
commitbc018711c042d7b20f16a430933799f5bb5f6c5a (patch)
tree5143525368d766229cbe22f66de8fc129e5354f6 /hel.nix
parent304e007de947298c38ca9e1140c8bed358316ebf (diff)
downloadnixos-bc018711c042d7b20f16a430933799f5bb5f6c5a.tar
nixos-bc018711c042d7b20f16a430933799f5bb5f6c5a.tar.gz
nixos-bc018711c042d7b20f16a430933799f5bb5f6c5a.tar.bz2
nixos-bc018711c042d7b20f16a430933799f5bb5f6c5a.tar.xz
nixos-bc018711c042d7b20f16a430933799f5bb5f6c5a.zip
Eavesdrop dbus
Diffstat (limited to 'hel.nix')
-rw-r--r--hel.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/hel.nix b/hel.nix
index 1513a533..6a55abd0 100644
--- a/hel.nix
+++ b/hel.nix
@@ -319,6 +319,27 @@
319 members = [ "gkleen" ]; 319 members = [ "gkleen" ];
320 }; 320 };
321 }; 321 };
322
323 dbus = {
324 enable = true;
325 packages = [ (pkgs.writeTextFile {
326 name = "eavesdrop.conf";
327 text = ''
328 <!DOCTYPE busconfig PUBLIC
329 "-//freedesktop//DTD D-Bus Bus Configuration 1.0//EN"
330 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
331 <busconfig>
332 <policy user="root">
333 <allow eavesdrop="true"/>
334 <allow eavesdrop="true" send_destination="*"/>
335 </policy>
336 </busconfig>
337 '';
338 destination = "/etc/dbus-1/system.d/eavesdrop.conf";
339 };
340 )
341 ];
342 };
322 }; 343 };
323 344
324 security = { 345 security = {