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));
};
serviceConfig = {
SyslogIdentifier = "xserver";
ExecReload = "${pkgs.need-reload}/bin/need-reload xserver.service";
ExecStart = toString [
"${pkgs.xorg.xorgserver}/bin/X"
":${toString config.services.xserver.display}"
"vt${toString config.services.xserver.tty}"
"-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"
"-xkbdir ${pkgs.xkeyboard_config}/etc/X11/xkb"
];