diff options
author | Arian van Putten <arian.vanputten@gmail.com> | 2020-05-08 14:15:41 +0200 |
---|---|---|
committer | Florian Klink <flokli@flokli.de> | 2020-06-13 12:23:45 +0200 |
commit | 0e18e5db994f416580e8c6fbe3351a721ee5ec35 (patch) | |
tree | e088f7edda44234a673fc95da74230954cb4b508 /nixos/modules/system/boot/resolved.nix | |
parent | ff53f0930e0effde74823ed7fa1bb7d521a627df (diff) | |
download | nixpkgs-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.nix | 1 |
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 ]; }; |