summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorPeng Mei Yu <pmy@xqzp.net>2021-07-09 13:36:26 +0800
committerPeng Mei Yu <pmy@xqzp.net>2021-07-09 13:36:26 +0800
commitb68547486ef6150e2ec9b862702c28595385478a (patch)
tree1ec753d145c911b034082347c5cda4d4bee195c3 /nixos/modules
parent53072cc0666112eebe9bc5d18dd46abb12f0dcbe (diff)
downloadnixpkgs-b68547486ef6150e2ec9b862702c28595385478a.tar
nixpkgs-b68547486ef6150e2ec9b862702c28595385478a.tar.gz
nixpkgs-b68547486ef6150e2ec9b862702c28595385478a.tar.bz2
nixpkgs-b68547486ef6150e2ec9b862702c28595385478a.tar.lz
nixpkgs-b68547486ef6150e2ec9b862702c28595385478a.tar.xz
nixpkgs-b68547486ef6150e2ec9b862702c28595385478a.tar.zst
nixpkgs-b68547486ef6150e2ec9b862702c28595385478a.zip
nixos/smartdns: Restart service when config changes
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/services/networking/smartdns.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/networking/smartdns.nix b/nixos/modules/services/networking/smartdns.nix
index f1888af7041..f84c727f034 100644
--- a/nixos/modules/services/networking/smartdns.nix
+++ b/nixos/modules/services/networking/smartdns.nix
@@ -54,6 +54,7 @@ in {
 
     systemd.packages = [ pkgs.smartdns ];
     systemd.services.smartdns.wantedBy = [ "multi-user.target" ];
+    systemd.services.smartdns.restartTriggers = [ confFile ];
     environment.etc."smartdns/smartdns.conf".source = confFile;
     environment.etc."default/smartdns".source =
       "${pkgs.smartdns}/etc/default/smartdns";