3
0
Fork 0
forked from mirrors/nixpkgs

xserverArgs fuckup

gnome-x-session provides good defaults which we really should not
override.
We have to add assertions to gdm.nix if the user specified one of those.

enableTCP must be configured through a gnome setting

dunno why we have terminate but it probably breaks stuff

We should expose configFile so we can use it from gdm module.
This commit is contained in:
Alexander Ried 2016-10-03 17:04:29 +02:00
parent 8ec776eb73
commit c2922a9157

View file

@ -546,18 +546,19 @@ in
};
};
services.xserver.displayManager.xserverArgs =
[ "-terminate"
services.xserver.displayManager.xserverArgs = mkDefault (
[ #"-terminate"
"-config ${configFile}"
"-xkbdir" "${cfg.xkbDir}"
# Log at the default verbosity level to stderr rather than /var/log/X.*.log.
"-verbose" "3" "-logfile" "/dev/null"
] ++ optional (cfg.display != null) ":${toString cfg.display}"
++ optional (cfg.tty != null) "vt${toString cfg.tty}"
#"-verbose" "3" "-logfile" "/dev/null"
] #++ optional (cfg.display != null) ":${toString cfg.display}"
#++ optional (cfg.tty != null) "vt${toString cfg.tty}"
++ optional (cfg.dpi != null) "-dpi ${toString cfg.dpi}"
++ optional (!cfg.enableTCP) "-nolisten tcp"
#++ optional (!cfg.enableTCP) "-nolisten tcp");
++ optional (cfg.autoRepeatDelay != null) "-ardelay ${toString cfg.autoRepeatDelay}"
++ optional (cfg.autoRepeatInterval != null) "-arinterval ${toString cfg.autoRepeatInterval}";
++ optional (cfg.autoRepeatInterval != null) "-arinterval ${toString cfg.autoRepeatInterval}"
);
services.xserver.modules =
concatLists (catAttrs "modules" cfg.drivers) ++