nixos/{lightdm,sddm,xpra}: remove enabling of logToFile

This commit is contained in:
Tobias Happ 2018-11-09 16:47:16 +01:00
parent 2823b5e698
commit 4839403dd6
4 changed files with 33 additions and 35 deletions

View File

@ -212,6 +212,14 @@
<literal>hardware.ckb-next.*</literal>. <literal>hardware.ckb-next.*</literal>.
</para> </para>
</listitem> </listitem>
<listitem>
<para>
The option <literal>services.xserver.displayManager.job.logToFile</literal> which was
previously set to <literal>true</literal> when using the display managers
<literal>lightdm</literal>, <literal>sddm</literal> or <literal>xpra</literal> has been
reset to the default value (<literal>false</literal>).
</para>
</listitem>
</itemizedlist> </itemizedlist>
</section> </section>

View File

@ -208,15 +208,11 @@ in
} }
]; ];
services.xserver.displayManager.job = { # lightdm relaunches itself via just `lightdm`, so needs to be on the PATH
logToFile = true; services.xserver.displayManager.job.execCmd = ''
export PATH=${lightdm}/sbin:$PATH
# lightdm relaunches itself via just `lightdm`, so needs to be on the PATH exec ${lightdm}/sbin/lightdm
execCmd = '' '';
export PATH=${lightdm}/sbin:$PATH
exec ${lightdm}/sbin/lightdm
'';
};
environment.etc."lightdm/lightdm.conf".source = lightdmConf; environment.etc."lightdm/lightdm.conf".source = lightdmConf;
environment.etc."lightdm/users.conf".source = usersConf; environment.etc."lightdm/users.conf".source = usersConf;

View File

@ -209,8 +209,6 @@ in
]; ];
services.xserver.displayManager.job = { services.xserver.displayManager.job = {
logToFile = true;
environment = { environment = {
# Load themes from system environment # Load themes from system environment
QT_PLUGIN_PATH = "/run/current-system/sw/" + pkgs.qt5.qtbase.qtPluginPrefix; QT_PLUGIN_PATH = "/run/current-system/sw/" + pkgs.qt5.qtbase.qtPluginPrefix;

View File

@ -219,30 +219,26 @@ in
VideoRam 192000 VideoRam 192000
''; '';
services.xserver.displayManager.job = { services.xserver.displayManager.job.execCmd = ''
logToFile = true; ${optionalString (cfg.pulseaudio)
"export PULSE_COOKIE=/var/run/pulse/.config/pulse/cookie"}
execCmd = '' exec ${pkgs.xpra}/bin/xpra start \
${optionalString (cfg.pulseaudio) --daemon=off \
"export PULSE_COOKIE=/var/run/pulse/.config/pulse/cookie"} --log-dir=/var/log \
exec ${pkgs.xpra}/bin/xpra start \ --log-file=xpra.log \
--daemon=off \ --opengl=on \
--log-dir=/var/log \ --clipboard=on \
--log-file=xpra.log \ --notifications=on \
--opengl=on \ --speaker=yes \
--clipboard=on \ --mdns=no \
--notifications=on \ --pulseaudio=no \
--speaker=yes \ ${optionalString (cfg.pulseaudio) "--sound-source=pulse"} \
--mdns=no \ --socket-dirs=/var/run/xpra \
--pulseaudio=no \ --xvfb="xpra_Xdummy ${concatStringsSep " " dmcfg.xserverArgs}" \
${optionalString (cfg.pulseaudio) "--sound-source=pulse"} \ ${optionalString (cfg.bindTcp != null) "--bind-tcp=${cfg.bindTcp}"} \
--socket-dirs=/var/run/xpra \ --auth=${cfg.auth} \
--xvfb="xpra_Xdummy ${concatStringsSep " " dmcfg.xserverArgs}" \ ${concatStringsSep " " cfg.extraOptions}
${optionalString (cfg.bindTcp != null) "--bind-tcp=${cfg.bindTcp}"} \ '';
--auth=${cfg.auth} \
${concatStringsSep " " cfg.extraOptions}
'';
};
services.xserver.terminateOnReset = false; services.xserver.terminateOnReset = false;