nixos/systemd/resolved: add resolve to nss hosts database if enabled

We keep the "only add the nss module if nscd is enabled" logic for now.

The assertion never was triggered, so it can be removed.
This commit is contained in:
Florian Klink
2020-05-05 15:59:30 +02:00
parent 499b5feac9
commit 7426bec45e
2 changed files with 4 additions and 7 deletions
+4
View File
@@ -138,6 +138,10 @@ in
users.users.resolved.group = "systemd-resolve";
# add resolve to nss hosts database if enabled and nscd enabled
# system.nssModules is configured in nixos/modules/system/boot/systemd.nix
system.nssDatabases.hosts = optional config.services.nscd.enable "resolve [!UNAVAIL=return]";
systemd.additionalUpstreamSystemUnits = [
"systemd-resolved.service"
];