summary refs log tree commit diff
path: root/nixos/modules/services/system/dbus.nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2015-04-16 19:10:11 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2015-04-16 19:13:20 +0200
commit5a5a43ea25e6067c5ddc32e33ff31297552b4cf6 (patch)
tree90282e4600ad625179159060e6f277f01eda8e6d /nixos/modules/services/system/dbus.nix
parent497bf2a6962e3ff16a013b146d48254e01493073 (diff)
downloadnixpkgs-5a5a43ea25e6067c5ddc32e33ff31297552b4cf6.tar
nixpkgs-5a5a43ea25e6067c5ddc32e33ff31297552b4cf6.tar.gz
nixpkgs-5a5a43ea25e6067c5ddc32e33ff31297552b4cf6.tar.bz2
nixpkgs-5a5a43ea25e6067c5ddc32e33ff31297552b4cf6.tar.lz
nixpkgs-5a5a43ea25e6067c5ddc32e33ff31297552b4cf6.tar.xz
nixpkgs-5a5a43ea25e6067c5ddc32e33ff31297552b4cf6.tar.zst
nixpkgs-5a5a43ea25e6067c5ddc32e33ff31297552b4cf6.zip
dbus: Reload if /etc/dbus-1 changes
Specifically, this fixes dnsmasq, which failed with

  Apr 16 19:00:30 mandark dnsmasq[23819]: dnsmasq: DBus error: Connection ":1.260" is not allowed to own the service "uk.org.thekelleys.dnsmasq" due to security policies in the configuration file
  Apr 16 19:00:30 mandark dnsmasq[23819]: DBus error: Connection ":1.260" is not allowed to own the service "uk.org.thekelleys.dnsmasq" due to security policies in the configuration file

after being enabled, due to dbus not being reloaded.
Diffstat (limited to 'nixos/modules/services/system/dbus.nix')
-rw-r--r--nixos/modules/services/system/dbus.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/services/system/dbus.nix b/nixos/modules/services/system/dbus.nix
index d40f7d6d05d..853b458cf58 100644
--- a/nixos/modules/services/system/dbus.nix
+++ b/nixos/modules/services/system/dbus.nix
@@ -133,6 +133,8 @@ in
     # Don't restart dbus-daemon. Bad things tend to happen if we do.
     systemd.services.dbus.reloadIfChanged = true;
 
+    systemd.services.dbus.restartTriggers = [ configDir ];
+
     environment.pathsToLink = [ "/etc/dbus-1" "/share/dbus-1" ];
 
   };