mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 22:36:23 +01:00
1e5a2bca28
It's obsolete and we no longer use it.
25 lines
612 B
Nix
25 lines
612 B
Nix
{pkgs, config, ...}:
|
|
|
|
{
|
|
options = {
|
|
environment.noXlibs = pkgs.lib.mkOption {
|
|
default = false;
|
|
example = true;
|
|
description = ''
|
|
Switch off the options in the default configuration that require X libraries.
|
|
Currently this includes: ssh X11 forwarding, dbus, fonts.enableCoreFonts,
|
|
fonts.enableFontConfig
|
|
'';
|
|
};
|
|
};
|
|
config = pkgs.lib.mkIf config.environment.noXlibs {
|
|
programs.ssh.setXAuthLocation = false;
|
|
services = {
|
|
dbus.enable = false;
|
|
};
|
|
fonts = {
|
|
enableCoreFonts = false;
|
|
enableFontConfig = false;
|
|
};
|
|
};
|
|
}
|