nixpkgs-suyu/nixos/modules/config/no-x-libs.nix

26 lines
565 B
Nix
Raw Normal View History

{ config, pkgs, ... }:
2013-10-30 17:37:45 +01:00
with pkgs.lib;
{
options = {
2013-10-30 17:37:45 +01:00
environment.noXlibs = mkOption {
type = types.bool;
default = false;
description = ''
Switch off the options in the default configuration that require X libraries.
Currently this includes: ssh X11 forwarding, dbus, fonts.enableCoreFonts,
fonts.enableFontConfig
'';
};
};
2013-10-30 17:37:45 +01:00
config = mkIf config.environment.noXlibs {
programs.ssh.setXAuthLocation = false;
fonts = {
enableCoreFonts = false;
enableFontConfig = false;
};
};
}