mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-15 03:15:56 +03:00
c9b4e6fda2
D-Bus cannot be disabled since systemd/logind depend on it.
24 lines
564 B
Nix
24 lines
564 B
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
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;
|
|
fonts = {
|
|
enableCoreFonts = false;
|
|
enableFontConfig = false;
|
|
};
|
|
};
|
|
}
|