nixos/dhcpcd: use networking.resolvconf.package

Allow using the appropriate resolver implementation to set DNS entries
(typically systemd-resolved instead of openresolv).
This commit is contained in:
Naïm Favier 2022-06-21 22:58:30 +02:00
parent 953a5bd3dd
commit 4af5c46faa
No known key found for this signature in database
GPG key ID: 95AFCE8211908325

View file

@ -215,7 +215,7 @@ in
# dhcpcd. So do a "systemctl restart" instead.
stopIfChanged = false;
path = [ dhcpcd pkgs.nettools pkgs.openresolv ];
path = [ dhcpcd pkgs.nettools config.networking.resolvconf.package ];
unitConfig.ConditionCapability = "CAP_NET_ADMIN";