Adding an option to disable nscd.

svn path=/nixos/trunk/; revision=19004
This commit is contained in:
Lluís Batlle i Rossell 2009-12-16 20:51:25 +00:00
parent ee434cc3d6
commit 3f6ca96967

View file

@ -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";