Added possibility to modify Xorg passed to upstart-job and xlaunch
svn path=/nixos/trunk/; revision=11555
This commit is contained in:
parent
036e00a16d
commit
bfa0e51ee5
@ -1315,6 +1315,14 @@
|
|||||||
";
|
";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
packageFun = mkOption {
|
||||||
|
default = pkgs: pkgs.xorg;
|
||||||
|
description = "
|
||||||
|
Alternative X.org package to use. For
|
||||||
|
example, you can replace individual drivers.
|
||||||
|
";
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
ejabberd = {
|
ejabberd = {
|
||||||
|
@ -10,7 +10,7 @@ let
|
|||||||
|
|
||||||
# Abbreviations.
|
# Abbreviations.
|
||||||
cfg = config.services.xserver;
|
cfg = config.services.xserver;
|
||||||
xorg = pkgs.xorg;
|
xorg = cfg.packageFun pkgs;
|
||||||
gnome = pkgs.gnome;
|
gnome = pkgs.gnome;
|
||||||
stdenv = pkgs.stdenv;
|
stdenv = pkgs.stdenv;
|
||||||
|
|
||||||
@ -160,6 +160,12 @@ let
|
|||||||
';
|
';
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
|
if [ "${toString videoDriver}" = ati ]; then
|
||||||
|
export extensions='
|
||||||
|
Option "Composite" "Enable"
|
||||||
|
';
|
||||||
|
fi;
|
||||||
|
|
||||||
substituteAll $src $out
|
substituteAll $src $out
|
||||||
''; # */
|
''; # */
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user