* Automatically start VBoxClient-all when the X session starts. This
allows seamless windows, resizing of the desktop, cut and paster, etc. svn path=/nixos/trunk/; revision=33131
This commit is contained in:
parent
4adc99f9a5
commit
53bd25c7fa
|
@ -80,6 +80,8 @@ let
|
|||
|
||||
source /etc/profile
|
||||
|
||||
${cfg.displayManager.sessionCommands}
|
||||
|
||||
# Allow the user to setup a custom session type.
|
||||
if test -x ~/.xsession; then
|
||||
exec ~/.xsession
|
||||
|
@ -164,6 +166,16 @@ in
|
|||
apply = toString;
|
||||
};
|
||||
|
||||
sessionCommands = mkOption {
|
||||
default = "";
|
||||
example =
|
||||
''
|
||||
xmessage "Hello World!" &
|
||||
'';
|
||||
type = types.string;
|
||||
description = "Shell commands executed just before the window or desktop manager is started.";
|
||||
};
|
||||
|
||||
session = mkOption {
|
||||
default = [];
|
||||
example = [
|
||||
|
|
|
@ -60,6 +60,11 @@ in
|
|||
InputDevice "VBoxMouse"
|
||||
'';
|
||||
|
||||
services.xserver.displayManager.sessionCommands =
|
||||
''
|
||||
PATH=${makeSearchPath "bin" [ pkgs.gnugrep pkgs.which pkgs.xorg.xorgserver ]}:$PATH \
|
||||
${kernel.virtualboxGuestAdditions}/bin/VBoxClient-all
|
||||
'';
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue