mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +01:00
25 lines
482 B
Nix
25 lines
482 B
Nix
|
{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;
|
||
|
};
|
||
|
};
|
||
|
}
|