nixpkgs/modules/config/no-x-libs.nix
Michael Raskin 69cc6ce3ec Refactoring modules and cleaning up a comment
svn path=/nixos/trunk/; revision=17310
2009-09-20 18:15:52 +00:00

29 lines
635 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: sshd.forwardX11, dbus, hal, fonts.enableCoreFonts,
fonts.enableFontConfig
'';
};
};
config = pkgs.lib.mkIf config.environment.noXlibs {
services = {
sshd = {
forwardX11 = false;
};
dbus.enable = false;
hal.enable = false;
};
fonts = {
enableCoreFonts = false;
enableFontConfig = false;
};
};
}