mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
Small correction to xserver.nix for compiz; also nixos-checkout now creates services where it should be.
svn path=/nixos/trunk/; revision=9578
This commit is contained in:
parent
79c7f2cecc
commit
b494c20cb5
3 changed files with 13 additions and 3 deletions
|
@ -21,14 +21,15 @@ if test -e nixpkgs -a ! -e nixpkgs/.svn; then
|
|||
mv nixpkgs nixpkgs-$backupTimestamp
|
||||
fi
|
||||
|
||||
if test -e nixos/services -a ! -e nixos/services/.svn; then
|
||||
if test -e services -a ! -e services/.svn; then
|
||||
mv nixos/services services-$backupTimestamp
|
||||
fi
|
||||
|
||||
# Check out the NixOS and Nixpkgs sources.
|
||||
svn co https://svn.cs.uu.nl:12443/repos/trace/nixos/trunk nixos
|
||||
svn co https://svn.cs.uu.nl:12443/repos/trace/nixpkgs/trunk nixpkgs
|
||||
svn co https://svn.cs.uu.nl:12443/repos/trace/services/trunk nixos/services
|
||||
svn co https://svn.cs.uu.nl:12443/repos/trace/services/trunk services
|
||||
ln -sf services nixos/services
|
||||
|
||||
# A few symlink.
|
||||
ln -sfn ../nixpkgs/pkgs nixos/pkgs
|
||||
|
|
|
@ -650,6 +650,14 @@
|
|||
";
|
||||
}
|
||||
|
||||
{
|
||||
name = ["services" "xserver" "renderingFlag"];
|
||||
default = "";
|
||||
example = "--indirect-rendering";
|
||||
description = "
|
||||
Possibly pass --indierct-rendering to Compiz.
|
||||
";
|
||||
}
|
||||
|
||||
{
|
||||
name = ["services" "xserver" "sessionStarter"];
|
||||
|
|
|
@ -38,6 +38,7 @@ let
|
|||
resolutions = map (res: "\"${toString res.x}x${toString res.y}\"") (getCfg "resolutions");
|
||||
sessionType = getCfg "sessionType";
|
||||
sessionStarter = getCfg "sessionStarter";
|
||||
renderingFlag = getCfg "renderingFlag";
|
||||
|
||||
|
||||
sessionCmd =
|
||||
|
@ -238,7 +239,7 @@ let
|
|||
|
||||
# Start Compiz and the GTK-style window decorator.
|
||||
env LD_LIBRARY_PATH=${libX11}/lib:${libXext}/lib:/usr/lib/
|
||||
${compiz}/bin/compiz gconf &
|
||||
${compiz}/bin/compiz gconf ${renderingFlag}&
|
||||
${compiz}/bin/gtk-window-decorator --sync &
|
||||
"
|
||||
#else if windowManager == "beryl" then "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue