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

25 lines
482 B
Nix
Raw Normal View History

{pkgs, config, ...}:
{
options = {
environment.noXlibs = pkgs.lib.mkOption {
default = false;
example = true;
description = "Removing on-by-default X-dependent settings";
};
};
config = pkgs.lib.mkIf config.environment.noXlibs {
services = {
sshd = {
forwardX11 = false;
};
dbus.enable = false;
hal.enable = false;
};
fonts = {
enableCoreFonts = false;
enableFontConfig = false;
};
};
}