From 3f6ca969671addd4e80a7c93c7cfc6434388a2b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Wed, 16 Dec 2009 20:51:25 +0000 Subject: [PATCH] Adding an option to disable nscd. svn path=/nixos/trunk/; revision=19004 --- modules/services/system/nscd.nix | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/modules/services/system/nscd.nix b/modules/services/system/nscd.nix index 1e3a4ff75c9..ede6c4213db 100644 --- a/modules/services/system/nscd.nix +++ b/modules/services/system/nscd.nix @@ -1,5 +1,7 @@ {pkgs, config, ...}: +with pkgs.lib; + let nssModulesPath = config.system.nssModules.path; @@ -9,7 +11,27 @@ let in { - config = { + + ###### interface + + options = { + + services.nscd = { + + enable = mkOption { + default = true; + description = " + Whether to enable the Name Service Cache Daemon. + "; + }; + + }; + + }; + + ###### implementation + + config = mkIf config.services.nscd.enable { users.extraUsers = singleton { name = "nscd";