3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/modules/config/no-x-libs.nix
Yury G. Kudryashov eea1660532 no-x-libs: s/sshd/openssh/
svn path=/nixos/trunk/; revision=21009
2010-04-11 14:47:06 +00:00

29 lines
641 B
Nix

{pkgs, config, ...}:
{
options = {
environment.noXlibs = pkgs.lib.mkOption {
default = false;
example = true;
description = ''
Switch off the options in the default configuration that require X libraries.
Currently this includes: openssh.forwardX11, dbus, hal, fonts.enableCoreFonts,
fonts.enableFontConfig
'';
};
};
config = pkgs.lib.mkIf config.environment.noXlibs {
services = {
openssh = {
forwardX11 = false;
};
dbus.enable = false;
hal.enable = false;
};
fonts = {
enableCoreFonts = false;
enableFontConfig = false;
};
};
}