3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #129718 from pmeiyu/master

nixos/smartdns: Restart service when config changes
This commit is contained in:
Aaron Andersen 2021-07-09 23:31:14 -04:00 committed by GitHub
commit faec8bbbf7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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";