summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch
diff options
context:
space:
mode:
authorMichael Franzl <michael@franzl.name>2024-06-25 20:22:14 +0200
committerMichael Franzl <michael@franzl.name>2024-06-25 20:22:14 +0200
commitcae086d605f9f1b6f911846acd81e4a223899da1 (patch)
treeac7a16b93720ac0c8d3fd24db93ec78c0aa36eb9 /pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch
parentefdfa300eeb8b1bc21dad55a845a673821f903da (diff)
nixos/virtualisation: increase priority for libvirt NSS modules
When `services.resolved` is enabled, then `resolve [!UNAVAIL=return]` is added to `system.nssDatabases.hosts` with priority 501, which prevents lower-priority NSS modules from running unless systemd-resolved is not available. Quoting from `man nss-resolve`: > To activate the NSS module, add "resolve [!UNAVAIL=return]" to the line > starting with "hosts:" in /etc/nsswitch.conf. Specifically, it is > recommended to place "resolve" early in /etc/nsswitch.conf's "hosts:" > line. It should be before the "files" entry, since systemd-resolved > supports /etc/hosts internally, but with caching. To the contrary, it > should be after "mymachines", to give hostnames given to local VMs and > containers precedence over names received over DNS. Finally, we > recommend placing "dns" somewhere after "resolve", to fall back to > nss-dns if systemd-resolved.service is not available. Note that the man page (just) recommends "early" and means with this "before the 'files' and 'dns' entries". It does not insist on being first or excluding other modules. For this reason, libvirt NSS modules should run before the `resolve` module. They should come right next to `mymachines` because both are conceptually very similar -- they resolve local VMs/containers. Since the data source of the libvirt NSS modules are local plain text files (see source code of the libvirt NSS module), no performance impact is expected form this raise of priorities. Other NSS modules in NixOS also explicitly set their priority, which is why this change increases consistency. Fixes #322022
Diffstat (limited to 'pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch')
0 files changed, 0 insertions, 0 deletions