mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
Adding an option to disable nscd.
svn path=/nixos/trunk/; revision=19004
This commit is contained in:
parent
ee434cc3d6
commit
3f6ca96967
1 changed files with 23 additions and 1 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue