about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorJamey Sharp <jamey@minilop.net>2019-07-03 15:30:17 -0700
committerJamey Sharp <jamey@minilop.net>2019-07-03 15:34:44 -0700
commit4c64375e91ca400c646316ae2da8d3603aebfb9c (patch)
tree7ff06086cd2d5fe2e5a223cd009e9dd890dd756f /nixos
parentde251704d66331f61417b9eaa42c58270ea6c766 (diff)
downloadnixlib-4c64375e91ca400c646316ae2da8d3603aebfb9c.tar
nixlib-4c64375e91ca400c646316ae2da8d3603aebfb9c.tar.gz
nixlib-4c64375e91ca400c646316ae2da8d3603aebfb9c.tar.bz2
nixlib-4c64375e91ca400c646316ae2da8d3603aebfb9c.tar.lz
nixlib-4c64375e91ca400c646316ae2da8d3603aebfb9c.tar.xz
nixlib-4c64375e91ca400c646316ae2da8d3603aebfb9c.tar.zst
nixlib-4c64375e91ca400c646316ae2da8d3603aebfb9c.zip
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.
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/system/nscd.conf18
1 files changed, 0 insertions, 18 deletions
diff --git a/nixos/modules/services/system/nscd.conf b/nixos/modules/services/system/nscd.conf
index b294e9339185..bd802bd3c2ee 100644
--- a/nixos/modules/services/system/nscd.conf
+++ b/nixos/modules/services/system/nscd.conf
@@ -6,46 +6,28 @@
 # fallback to trying to handle the request by itself. Which won't work as glibc
 # is not aware of the path in which the nss modules live.  As a workaround, we
 # have `enable-cache yes` with an explicit ttl of 0
-threads                 1
-paranoia                no
-debug-level             0
 
 enable-cache            passwd          yes
 positive-time-to-live   passwd          0
 negative-time-to-live   passwd          0
-suggested-size          passwd          211
-check-files             passwd          yes
-persistent              passwd          no
 shared                  passwd          yes
 
 enable-cache            group           yes
 positive-time-to-live   group           0
 negative-time-to-live   group           0
-suggested-size          group           211
-check-files             group           yes
-persistent              group           no
 shared                  group           yes
 
 enable-cache            netgroup        yes
 positive-time-to-live   netgroup        0
 negative-time-to-live   netgroup        0
-suggested-size          netgroup        211
-check-files             netgroup        yes
-persistent              netgroup        no
 shared                  netgroup        yes
 
 enable-cache            hosts           yes
 positive-time-to-live   hosts           600
 negative-time-to-live   hosts           0
-suggested-size          hosts           211
-check-files             hosts           yes
-persistent              hosts           no
 shared                  hosts           yes
 
 enable-cache            services        yes
 positive-time-to-live   services        0
 negative-time-to-live   services        0
-suggested-size          services        211
-check-files             services        yes
-persistent              services        no
 shared                  services        yes