diff options
author | Florian Klink <flokli@flokli.de> | 2023-02-02 11:02:10 +0100 |
---|---|---|
committer | Florian Klink <flokli@flokli.de> | 2023-02-02 11:07:25 +0100 |
commit | fbfe2907af640ba3fb3528ab5e75d9dcd150a0e0 (patch) | |
tree | 42ce57feedfa2f8ab5867e36066be2932451aba8 /nixos/modules | |
parent | 56f5f40f81d15f56aa1470dc8f1d1716ba81fbb0 (diff) |
nixos/nscd: use nsncd by default
As announced in the NixOS 22.11 release notes, 23.05 will switch NixOS
to using nsncd (a non-caching reimplementation in Rust) as NSS lookup
dispatcher, instead of the buggy and deprecated glibc-provided nscd.
If you need to switch back, set `services.nscd.enableNsncd = false`, but
please open an issue in nixpkgs so your issue can be fixed.
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/services/system/nscd.nix | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/nixos/modules/services/system/nscd.nix b/nixos/modules/services/system/nscd.nix index fdc5190d084b..971dffbadc13 100644 --- a/nixos/modules/services/system/nscd.nix +++ b/nixos/modules/services/system/nscd.nix @@ -29,10 +29,11 @@ in enableNsncd = mkOption { type = types.bool; - default = false; + default = true; description = lib.mdDoc '' - Whether to use nsncd instead of nscd. + Whether to use nsncd instead of nscd from glibc. This is a nscd-compatible daemon, that proxies lookups, without any caching. + Using nscd from glibc is discouraged. ''; }; @@ -55,7 +56,10 @@ in config = mkOption { type = types.lines; default = builtins.readFile ./nscd.conf; - description = lib.mdDoc "Configuration to use for Name Service Cache Daemon."; + description = lib.mdDoc '' + Configuration to use for Name Service Cache Daemon. + Only used in case glibc-nscd is used. + ''; }; package = mkOption { |