2013-10-01 14:45:20 +02:00
|
|
|
{ config, pkgs, ... }:
|
2009-09-20 17:07:19 +02:00
|
|
|
|
2013-10-30 17:37:45 +01:00
|
|
|
with pkgs.lib;
|
|
|
|
|
2009-09-20 17:07:19 +02:00
|
|
|
{
|
|
|
|
options = {
|
2013-10-30 17:37:45 +01:00
|
|
|
environment.noXlibs = mkOption {
|
|
|
|
type = types.bool;
|
2009-09-20 17:07:19 +02:00
|
|
|
default = false;
|
2009-09-20 20:15:52 +02:00
|
|
|
description = ''
|
|
|
|
Switch off the options in the default configuration that require X libraries.
|
2012-08-17 20:45:43 +02:00
|
|
|
Currently this includes: ssh X11 forwarding, dbus, fonts.enableCoreFonts,
|
2010-04-15 17:47:26 +02:00
|
|
|
fonts.enableFontConfig
|
2009-09-20 20:15:52 +02:00
|
|
|
'';
|
2009-09-20 17:07:19 +02:00
|
|
|
};
|
|
|
|
};
|
2013-10-01 14:45:20 +02:00
|
|
|
|
2013-10-30 17:37:45 +01:00
|
|
|
config = mkIf config.environment.noXlibs {
|
2012-03-25 17:42:05 +02:00
|
|
|
programs.ssh.setXAuthLocation = false;
|
2009-09-20 17:07:19 +02:00
|
|
|
fonts = {
|
|
|
|
enableCoreFonts = false;
|
|
|
|
enableFontConfig = false;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|