diff --git a/system/options.nix b/system/options.nix index ab39d15857c1..dc72a1d965e1 100644 --- a/system/options.nix +++ b/system/options.nix @@ -825,7 +825,7 @@ description = " The command executed after login and after the window manager has been started. Used if - is not empty. + is empty. "; }; diff --git a/upstart-jobs/xserver.nix b/upstart-jobs/xserver.nix index b7ef28943a58..e207c1732027 100644 --- a/upstart-jobs/xserver.nix +++ b/upstart-jobs/xserver.nix @@ -18,15 +18,13 @@ let videoDriver = cfg.videoDriver; resolutions = map (res: ''"${toString res.x}x${toString res.y}"'') (cfg.resolutions); sessionType = cfg.sessionType; - sessionStarter = cfg.sessionStarter; - renderingFlag = cfg.renderingFlag; sessionCmd = - if sessionType == "" then sessionStarter else + if sessionType == "" then cfg.sessionStarter else if sessionType == "xterm" then "${pkgs.xterm}/bin/xterm -ls" else if sessionType == "gnome" then "${gnome.gnometerminal}/bin/gnome-terminal -ls" else - abort ("unknown session type "+ sessionType); + abort ("unknown session type ${sessionType}"); windowManager = @@ -221,7 +219,7 @@ let # Start Compiz and the GTK-style window decorator. env LD_LIBRARY_PATH=${xorg.libX11}/lib:${xorg.libXext}/lib:/usr/lib/ - ${pkgs.compiz}/bin/compiz gconf ${renderingFlag} & + ${pkgs.compiz}/bin/compiz gconf ${cfg.renderingFlag} & ${pkgs.compiz}/bin/gtk-window-decorator --sync & ''