2009-09-20 16:07:19 +01:00
|
|
|
{pkgs, config, ...}:
|
|
|
|
|
|
|
|
{
|
|
|
|
options = {
|
|
|
|
environment.noXlibs = pkgs.lib.mkOption {
|
|
|
|
default = false;
|
|
|
|
example = true;
|
2009-09-20 19:15:52 +01:00
|
|
|
description = ''
|
|
|
|
Switch off the options in the default configuration that require X libraries.
|
2010-04-15 16:47:26 +01:00
|
|
|
Currently this includes: openssh.forwardX11, dbus, hal, fonts.enableCoreFonts,
|
|
|
|
fonts.enableFontConfig
|
2009-09-20 19:15:52 +01:00
|
|
|
'';
|
2009-09-20 16:07:19 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
config = pkgs.lib.mkIf config.environment.noXlibs {
|
|
|
|
services = {
|
2010-04-11 15:47:06 +01:00
|
|
|
openssh = {
|
2009-09-20 16:07:19 +01:00
|
|
|
forwardX11 = false;
|
|
|
|
};
|
|
|
|
dbus.enable = false;
|
|
|
|
hal.enable = false;
|
|
|
|
};
|
|
|
|
fonts = {
|
|
|
|
enableCoreFonts = false;
|
|
|
|
enableFontConfig = false;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|