diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-04-16 16:58:06 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-04-16 16:58:06 +0200 |
commit | 150d3b00951a2f0f1f65a22602422c2e75616c1f (patch) | |
tree | 5b28b9dcea6a892f0999d34281930d0d75fcbe59 /nixos/modules/config | |
parent | c13d582c782536718c7d62a10c2f83f19f0ce22e (diff) | |
download | nixlib-150d3b00951a2f0f1f65a22602422c2e75616c1f.tar nixlib-150d3b00951a2f0f1f65a22602422c2e75616c1f.tar.gz nixlib-150d3b00951a2f0f1f65a22602422c2e75616c1f.tar.bz2 nixlib-150d3b00951a2f0f1f65a22602422c2e75616c1f.tar.lz nixlib-150d3b00951a2f0f1f65a22602422c2e75616c1f.tar.xz nixlib-150d3b00951a2f0f1f65a22602422c2e75616c1f.tar.zst nixlib-150d3b00951a2f0f1f65a22602422c2e75616c1f.zip |
no-x-libs.nix: Disable su xauth forwarding, and X11 dependency in dbus
Diffstat (limited to 'nixos/modules/config')
-rw-r--r-- | nixos/modules/config/no-x-libs.nix | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/nixos/modules/config/no-x-libs.nix b/nixos/modules/config/no-x-libs.nix index 4b791c109d7a..f91dbb4cc281 100644 --- a/nixos/modules/config/no-x-libs.nix +++ b/nixos/modules/config/no-x-libs.nix @@ -1,3 +1,6 @@ +# This module gets rid of all dependencies on X11 client libraries +# (including fontconfig). + { config, lib, pkgs, ... }: with lib; @@ -8,18 +11,22 @@ with lib; type = types.bool; default = false; description = '' - Switch off the options in the default configuration that require X libraries. - Currently this includes: ssh X11 forwarding, dbus, fonts.enableCoreFonts, - fonts.enableFontConfig + Switch off the options in the default configuration that + require X11 libraries. This includes client-side font + configuration and SSH forwarding of X11 authentication + in. Thus, you probably do not want to enable this option if + you want to run X11 programs on this machine via SSH. ''; }; }; config = mkIf config.environment.noXlibs { programs.ssh.setXAuthLocation = false; - fonts = { - enableCoreFonts = false; - enableFontConfig = false; - }; + security.pam.services.su.forwardXAuth = lib.mkForce false; + + fonts.enableFontConfig = false; + + nixpkgs.config.packageOverrides = pkgs: + { dbus = pkgs.dbus.override { useX11 = false; }; }; }; } |