tv xserver: log to journal instead of file

This is a partial backport of NixOS/nixpkgs d84741a.
This commit is contained in:
tv 2016-05-25 11:06:40 +02:00
parent b4ca66d23a
commit 82220a1fc4

View File

@ -95,14 +95,13 @@ in {
++ concatLists (catAttrs "libPath" config.services.xserver.drivers)); ++ concatLists (catAttrs "libPath" config.services.xserver.drivers));
}; };
serviceConfig = { serviceConfig = {
SyslogIdentifier = "xserver";
ExecReload = "${pkgs.need-reload}/bin/need-reload xserver.service"; ExecReload = "${pkgs.need-reload}/bin/need-reload xserver.service";
ExecStart = toString [ ExecStart = toString [
"${pkgs.xorg.xorgserver}/bin/X" "${pkgs.xorg.xorgserver}/bin/X"
":${toString config.services.xserver.display}" ":${toString config.services.xserver.display}"
"vt${toString config.services.xserver.tty}" "vt${toString config.services.xserver.tty}"
"-config ${import ./xserver.conf.nix args}" "-config ${import ./xserver.conf.nix args}"
"-logfile /var/log/X.${toString config.services.xserver.display}.log" "-logfile /dev/null -logverbose 0 -verbose 3"
"-nolisten tcp" "-nolisten tcp"
"-xkbdir ${pkgs.xkeyboard_config}/etc/X11/xkb" "-xkbdir ${pkgs.xkeyboard_config}/etc/X11/xkb"
]; ];