From 4f7819b89c63e0e331f1439daf3ff995e6c1e7a9 Mon Sep 17 00:00:00 2001 From: Anders Papitto Date: Wed, 5 Aug 2015 03:35:24 -0700 Subject: [PATCH] dnsmasq restarts if /etc/hosts file is changed by nixos-rebuild --- nixos/modules/services/networking/dnsmasq.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/networking/dnsmasq.nix b/nixos/modules/services/networking/dnsmasq.nix index 4a812167bb5..eb355151572 100644 --- a/nixos/modules/services/networking/dnsmasq.nix +++ b/nixos/modules/services/networking/dnsmasq.nix @@ -98,6 +98,7 @@ in ExecStart = "${dnsmasq}/bin/dnsmasq -k --enable-dbus --user=dnsmasq -C ${dnsmasqConf}"; ExecReload = "${dnsmasq}/bin/kill -HUP $MAINPID"; }; + restartTriggers = [ config.environment.etc.hosts.source ]; }; };