mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
acf656125c
* Clear the PATH in most scripts. This helps to ensure purity. svn path=/nixos/trunk/; revision=7299
49 lines
783 B
Nix
49 lines
783 B
Nix
{ substituteAll
|
|
|
|
, xorgserver
|
|
|
|
, xf86inputkeyboard
|
|
|
|
, xf86inputmouse
|
|
|
|
, xf86videovesa
|
|
|
|
, # Virtual console for the X server.
|
|
tty ? 7
|
|
|
|
, # X display number.
|
|
display ? 0
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
config = substituteAll {
|
|
name = "xserver.conf";
|
|
src = ./xserver.conf;
|
|
};
|
|
|
|
in
|
|
|
|
rec {
|
|
name = "xserver";
|
|
|
|
job = "
|
|
#start on network-interfaces
|
|
|
|
start script
|
|
|
|
end script
|
|
|
|
# !!! -ac is a bad idea.
|
|
exec ${xorgserver}/bin/X \\
|
|
-ac -nolisten tcp -terminate \\
|
|
-logfile /var/log/X.${toString display}.log \\
|
|
-fp /var/fonts \\
|
|
-modulepath ${xorgserver}/lib/xorg/modules,${xf86inputkeyboard}/lib/xorg/modules/input,${xf86inputmouse}/lib/xorg/modules/input,${xf86videovesa}/lib/xorg/modules/drivers \\
|
|
-config ${config} \\
|
|
:${toString display} vt${toString tty}
|
|
|
|
";
|
|
|
|
}
|