Add options to hide the cursor and define the default user.
svn path=/nixos/trunk/; revision=11664
This commit is contained in:
parent
8fd2404adf
commit
38874d8025
|
@ -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 {
|
||||
|
|
|
@ -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 ""}
|
||||
'';
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue