2009-09-20 15:07:19 +00:00
|
|
|
{pkgs, config, ...}:
|
|
|
|
|
|
|
|
{
|
|
|
|
options = {
|
|
|
|
environment.noXlibs = pkgs.lib.mkOption {
|
|
|
|
default = false;
|
|
|
|
example = true;
|
2009-09-20 18:15:52 +00:00
|
|
|
description = ''
|
|
|
|
Switch off the options in the default configuration that require X libraries.
|
2012-03-25 15:42:05 +00:00
|
|
|
Currently this includes: ssh X11 forwarding, dbus, hal, fonts.enableCoreFonts,
|
2010-04-15 15:47:26 +00:00
|
|
|
fonts.enableFontConfig
|
2009-09-20 18:15:52 +00:00
|
|
|
'';
|
2009-09-20 15:07:19 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
config = pkgs.lib.mkIf config.environment.noXlibs {
|
2012-03-25 15:42:05 +00:00
|
|
|
programs.ssh.setXAuthLocation = false;
|
2009-09-20 15:07:19 +00:00
|
|
|
services = {
|
|
|
|
dbus.enable = false;
|
|
|
|
hal.enable = false;
|
|
|
|
};
|
|
|
|
fonts = {
|
|
|
|
enableCoreFonts = false;
|
|
|
|
enableFontConfig = false;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|