git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/nscd: delete redundant nscd.conf options

These options were being set to the same value as the defaults that are hardcoded in nscd. Delete them so it's clear which settings are actually important for NixOS. One exception is `threads 1`, which is different from the built-in default of 4. However, both values are equivalent because nscd forces the number of threads to be at least as many as the number of kinds of databases it supports, which is 5.

commit4c64375e91ca400c646316ae2da8d3603aebfb9c authorJamey Sharp <jamey@minilop.net> dateWed 3 Jul 2019, 15:30 (7 years ago) parentde25170
1 file changed−18
nixos/modules/services/system/nscd.conf−18
nixos/modules/services/system/nscd.conf−18
@@ -6,46 +6,28 @@
66# fallback to trying to handle the request by itself. Which won't work as glibc
77# is not aware of the path in which the nss modules live. As a workaround, we
88# have `enable-cache yes` with an explicit ttl of 0
9−threads 1
10−paranoia no
11−debug-level 0
129
1310enable-cache passwd yes
1411positive-time-to-live passwd 0
1512negative-time-to-live passwd 0
16−suggested-size passwd 211
17−check-files passwd yes
18−persistent passwd no
1913shared passwd yes
2014
2115enable-cache group yes
2216positive-time-to-live group 0
2317negative-time-to-live group 0
24−suggested-size group 211
25−check-files group yes
26−persistent group no
2718shared group yes
2819
2920enable-cache netgroup yes
3021positive-time-to-live netgroup 0
3122negative-time-to-live netgroup 0
32−suggested-size netgroup 211
33−check-files netgroup yes
34−persistent netgroup no
3523shared netgroup yes
3624
3725enable-cache hosts yes
3826positive-time-to-live hosts 600
3927negative-time-to-live hosts 0
40−suggested-size hosts 211
41−check-files hosts yes
42−persistent hosts no
4328shared hosts yes
4429
4530enable-cache services yes
4631positive-time-to-live services 0
4732negative-time-to-live services 0
48−suggested-size services 211
49−check-files services yes
50−persistent services no
5133shared services yes