Add options to hide the cursor and define the default user.

svn path=/nixos/trunk/; revision=11664
This commit is contained in:
Nicolas Pierron 2008-04-21 13:05:35 +00:00
parent 8fd2404adf
commit 38874d8025
2 changed files with 19 additions and 0 deletions

View File

@ -1182,6 +1182,23 @@
";
};
defaultUser = mkOption {
default = "";
example = "login";
description = "
The default user to load. If you put a username here you
get it automatically loaded into the username field, and
the focus is placed on the password.
";
};
hideCursor = mkOption {
default = false;
example = true;
description = "
Hide the mouse cursor on the login screen.
";
};
};
isClone = mkOption {

View File

@ -294,6 +294,8 @@ let
login_cmd exec ${stdenv.bash}/bin/sh ${clientScript}
halt_cmd ${pkgs.upstart}/sbin/shutdown -h now
reboot_cmd ${pkgs.upstart}/sbin/shutdown -r now
${if cfg.slim.defaultUser != "" then "default_user " + cfg.slim.defaultUser else ""}
${if cfg.slim.hideCursor then "hidecursor true" else ""}
'';