From 1541fa351b4d664c51dddaeaa67ee0652892f405 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 12 Apr 2016 18:37:53 +0200 Subject: [PATCH] X server: Enable local access control For the last ten years we have been passing -ac to the X server, which is very bad idea. Fixes #14623. --- nixos/modules/services/x11/xserver.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nixos/modules/services/x11/xserver.nix b/nixos/modules/services/x11/xserver.nix index 70df18b40209..84fe8082666c 100644 --- a/nixos/modules/services/x11/xserver.nix +++ b/nixos/modules/services/x11/xserver.nix @@ -513,8 +513,7 @@ in }; services.xserver.displayManager.xserverArgs = - [ "-ac" - "-terminate" + [ "-terminate" "-config ${configFile}" "-xkbdir" "${cfg.xkbDir}" ] ++ optional (cfg.display != null) ":${toString cfg.display}"