nixos/resolved: Include dbus alias of resolved unit

This will make dbus socket activation for it work

When `systemd-resolved` is restarted; this would lead to unavailability
of DNS lookups.  You're supposed to use DBUS socket activation to buffer
resolved requests; such that restarts happen without downtime
This commit is contained in:
Arian van Putten 2020-05-08 14:15:41 +02:00 committed by Florian Klink
parent ff53f0930e
commit 0e18e5db99

View File

@ -148,6 +148,7 @@ in
systemd.services.systemd-resolved = {
wantedBy = [ "multi-user.target" ];
aliases = [ "dbus-org.freedesktop.resolve1.service" ];
restartTriggers = [ config.environment.etc."systemd/resolved.conf".source ];
};