From 83807f3aaa4ea9a835709015e6b51bedb86c1f9a Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Thu, 27 Oct 2022 00:47:08 +0200 Subject: [PATCH] nixos/doc/rl-2211: document nsncd option --- .../from_md/release-notes/rl-2211.section.xml | 26 +++++++++++++++++++ .../manual/release-notes/rl-2211.section.md | 14 ++++++++++ 2 files changed, 40 insertions(+) diff --git a/nixos/doc/manual/from_md/release-notes/rl-2211.section.xml b/nixos/doc/manual/from_md/release-notes/rl-2211.section.xml index 126f650250c..100b93bea4b 100644 --- a/nixos/doc/manual/from_md/release-notes/rl-2211.section.xml +++ b/nixos/doc/manual/from_md/release-notes/rl-2211.section.xml @@ -77,6 +77,32 @@ with any supported NixOS release. + + + nscd functionality, necessary to provide + non-glibc-builtin NSS modules (such as + nss_systemd or nss_ldap) + can now be provided by nsncd, by setting + services.nscd.enableNsncd to + true. + + + The nscd daemon provided by glibc, which is + currently used by NixOS isn’t very reliable. For example, it’s + not + fully possible to disable caching functionality, + causing various issues and failed lookups. + + + In contrast to nscd’s behavior of caching module responses on + its own, nsncd merely forwards requests to NSS modules, which + might cache or not. + + + We plan to use nsncd by default in NixOS + 23.05. + + emacs enables native compilation which diff --git a/nixos/doc/manual/release-notes/rl-2211.section.md b/nixos/doc/manual/release-notes/rl-2211.section.md index 64f1e089a41..81043a72d04 100644 --- a/nixos/doc/manual/release-notes/rl-2211.section.md +++ b/nixos/doc/manual/release-notes/rl-2211.section.md @@ -38,6 +38,20 @@ In addition to numerous new and upgraded packages, this release has the followin for a transition period so that in time the ecosystem can switch without breaking compatibility with any supported NixOS release. +- `nscd` functionality, necessary to provide non-glibc-builtin NSS + modules (such as `nss_systemd` or `nss_ldap`) can now be provided by + `nsncd`, by setting `services.nscd.enableNsncd` to `true`. + + The `nscd` daemon provided by glibc, which is currently used by NixOS isn't + very reliable. For example, it's [not fully possible to disable caching + functionality](https://github.com/NixOS/nixpkgs/issues/135888), causing + various issues and failed lookups. + + In contrast to nscd's behavior of caching module responses on its own, + nsncd merely forwards requests to NSS modules, which might cache or not. + + We plan to use `nsncd` by default in NixOS 23.05. + - `emacs` enables native compilation which means: - emacs packages from nixpkgs, builtin or not, will do native compilation ahead of time so you can enjoy the benefit of native compilation without compiling them on you machine; - emacs packages from somewhere else, e.g. `package-install`, will do asynchronously deferred native compilation. If you do not want this, maybe to avoid CPU consumption for compilation, you can use `(setq native-comp-deferred-compilation nil)` to disable it while still enjoy the benefit of native compilation for packages from nixpkgs.