forked from mirrors/nixpkgs
Merge pull request #129718 from pmeiyu/master
nixos/smartdns: Restart service when config changes
This commit is contained in:
commit
faec8bbbf7
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue