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