From 5a5a43ea25e6067c5ddc32e33ff31297552b4cf6 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 16 Apr 2015 19:10:11 +0200 Subject: [PATCH] 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. --- nixos/modules/services/system/dbus.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/modules/services/system/dbus.nix b/nixos/modules/services/system/dbus.nix index d40f7d6d05d9..853b458cf589 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" ]; };