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