diff options
-rw-r--r-- | hel.nix | 40 |
1 files changed, 20 insertions, 20 deletions
@@ -288,6 +288,26 @@ | |||
288 | localuser = null; | 288 | localuser = null; |
289 | prunePaths = ["/tmp" "/var/tmp" "/var/cache" "/var/lock" "/var/run" "/var/spool"]; | 289 | prunePaths = ["/tmp" "/var/tmp" "/var/cache" "/var/lock" "/var/run" "/var/spool"]; |
290 | }; | 290 | }; |
291 | |||
292 | dbus = { | ||
293 | enable = true; | ||
294 | packages = [ (pkgs.writeTextFile { | ||
295 | name = "eavesdrop.conf"; | ||
296 | text = '' | ||
297 | <!DOCTYPE busconfig PUBLIC | ||
298 | "-//freedesktop//DTD D-Bus Bus Configuration 1.0//EN" | ||
299 | "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd"> | ||
300 | <busconfig> | ||
301 | <policy user="root"> | ||
302 | <allow eavesdrop="true"/> | ||
303 | <allow eavesdrop="true" send_destination="*"/> | ||
304 | </policy> | ||
305 | </busconfig> | ||
306 | ''; | ||
307 | destination = "/etc/dbus-1/system.d/eavesdrop.conf"; | ||
308 | }) | ||
309 | ]; | ||
310 | }; | ||
291 | }; | 311 | }; |
292 | 312 | ||
293 | users = { | 313 | users = { |
@@ -319,26 +339,6 @@ | |||
319 | members = [ "gkleen" ]; | 339 | members = [ "gkleen" ]; |
320 | }; | 340 | }; |
321 | }; | 341 | }; |
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 | }; | 342 | }; |
343 | 343 | ||
344 | security = { | 344 | security = { |