mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
1e83fe6122
svn path=/nixos/trunk/; revision=21104
28 lines
655 B
Nix
28 lines
655 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: openssh.forwardX11, dbus, hal, fonts.enableCoreFonts,
|
|
fonts.enableFontConfig
|
|
'';
|
|
};
|
|
};
|
|
config = pkgs.lib.mkIf config.environment.noXlibs {
|
|
services = {
|
|
openssh = {
|
|
forwardX11 = false;
|
|
};
|
|
dbus.enable = false;
|
|
hal.enable = false;
|
|
};
|
|
fonts = {
|
|
enableCoreFonts = false;
|
|
enableFontConfig = false;
|
|
};
|
|
};
|
|
}
|