3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/nixos/modules/config/no-x-libs.nix

26 lines
565 B
Nix
Raw Normal View History

{ config, pkgs, ... }:
2013-10-30 16:37:45 +00:00
with pkgs.lib;
{
options = {
2013-10-30 16:37:45 +00: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 16:37:45 +00:00
config = mkIf config.environment.noXlibs {
programs.ssh.setXAuthLocation = false;
fonts = {
enableCoreFonts = false;
enableFontConfig = false;
};
};
}