summary refs log tree commit diff
path: root/nixos/modules/system/boot/resolved.nix
diff options
context:
space:
mode:
authorArian van Putten <arian.vanputten@gmail.com>2020-05-08 14:15:41 +0200
committerFlorian Klink <flokli@flokli.de>2020-06-13 12:23:45 +0200
commit0e18e5db994f416580e8c6fbe3351a721ee5ec35 (patch)
treee088f7edda44234a673fc95da74230954cb4b508 /nixos/modules/system/boot/resolved.nix
parentff53f0930e0effde74823ed7fa1bb7d521a627df (diff)
downloadnixpkgs-0e18e5db994f416580e8c6fbe3351a721ee5ec35.tar
nixpkgs-0e18e5db994f416580e8c6fbe3351a721ee5ec35.tar.gz
nixpkgs-0e18e5db994f416580e8c6fbe3351a721ee5ec35.tar.bz2
nixpkgs-0e18e5db994f416580e8c6fbe3351a721ee5ec35.tar.lz
nixpkgs-0e18e5db994f416580e8c6fbe3351a721ee5ec35.tar.xz
nixpkgs-0e18e5db994f416580e8c6fbe3351a721ee5ec35.tar.zst
nixpkgs-0e18e5db994f416580e8c6fbe3351a721ee5ec35.zip
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
Diffstat (limited to 'nixos/modules/system/boot/resolved.nix')
-rw-r--r--nixos/modules/system/boot/resolved.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/system/boot/resolved.nix b/nixos/modules/system/boot/resolved.nix
index b7aaef575ac..b024f9cf5ee 100644
--- a/nixos/modules/system/boot/resolved.nix
+++ b/nixos/modules/system/boot/resolved.nix
@@ -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 ];
     };