summary refs log tree commit diff
diff options
context:
space:
mode:
authorAnders Papitto <anderspapitto@gmail.com>2015-08-05 03:35:24 -0700
committerAnders Papitto <anderspapitto@gmail.com>2015-08-05 03:36:19 -0700
commit4f7819b89c63e0e331f1439daf3ff995e6c1e7a9 (patch)
tree76348f1787deac161fdf601e5e5099016c611847
parent661e1016b19eaa1f8d3453ad3e0d8e29778244e1 (diff)
downloadnixpkgs-4f7819b89c63e0e331f1439daf3ff995e6c1e7a9.tar
nixpkgs-4f7819b89c63e0e331f1439daf3ff995e6c1e7a9.tar.gz
nixpkgs-4f7819b89c63e0e331f1439daf3ff995e6c1e7a9.tar.bz2
nixpkgs-4f7819b89c63e0e331f1439daf3ff995e6c1e7a9.tar.lz
nixpkgs-4f7819b89c63e0e331f1439daf3ff995e6c1e7a9.tar.xz
nixpkgs-4f7819b89c63e0e331f1439daf3ff995e6c1e7a9.tar.zst
nixpkgs-4f7819b89c63e0e331f1439daf3ff995e6c1e7a9.zip
dnsmasq restarts if /etc/hosts file is changed by nixos-rebuild
-rw-r--r--nixos/modules/services/networking/dnsmasq.nix1
1 files changed, 1 insertions, 0 deletions
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 ];
     };
 
   };