Skip to content

Commit

Permalink
nixos/systemd: provide libidn2 for systemd-resolved
Browse files Browse the repository at this point in the history
systemd started using dlopen() for some of their "optional"
dependencies.

Apparently, `libidn2` isn't so optional, and systemd-resolved doesn't
work without libidn2 present, breaking DNS resolution.

Fixes #107537

Upstream bug: systemd/systemd#18078
  • Loading branch information
flokli committed Dec 25, 2020
1 parent 6180ee5 commit c674a51
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nixos/modules/system/boot/resolved.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, lib, ... }:
{ config, pkgs, lib, ... }:

with lib;
let
Expand Down Expand Up @@ -150,6 +150,9 @@ in
wantedBy = [ "multi-user.target" ];
aliases = [ "dbus-org.freedesktop.resolve1.service" ];
restartTriggers = [ config.environment.etc."systemd/resolved.conf".source ];
# Upstream bug: https://github.com/systemd/systemd/issues/18078
# systemd-resolved without libidn2 is broken
environment.LD_LIBRARY_PATH = "${lib.getLib pkgs.libidn2}/lib";
};

environment.etc = {
Expand Down

0 comments on commit c674a51

Please sign in to comment.