mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 12:11:28 +00:00
slim display manager: enabled auto_login setting
useful for demo/kiosk mode svn path=/nixos/trunk/; revision=33774
This commit is contained in:
parent
bcc24c1b86
commit
3bbaa3b60c
|
@ -16,8 +16,9 @@ let
|
|||
login_cmd exec ${pkgs.stdenv.shell} ${dmcfg.session.script} "%session"
|
||||
halt_cmd ${config.system.build.upstart}/sbin/shutdown -h now
|
||||
reboot_cmd ${config.system.build.upstart}/sbin/shutdown -r now
|
||||
${if cfg.defaultUser != "" then "default_user " + cfg.defaultUser else ""}
|
||||
${if cfg.hideCursor then "hidecursor true" else ""}
|
||||
${optionalString (cfg.defaultUser != "") ("default_user " + cfg.defaultUser)}
|
||||
${optionalString cfg.hideCursor "hidecursor true"}
|
||||
${optionalString cfg.autoLogin "auto_login yes"}
|
||||
'';
|
||||
|
||||
# Unpack the SLiM theme, or use the default.
|
||||
|
@ -83,6 +84,14 @@ in
|
|||
'';
|
||||
};
|
||||
|
||||
autoLogin = mkOption {
|
||||
default = false;
|
||||
example = true;
|
||||
description = ''
|
||||
Automatically log in as the default user.
|
||||
'';
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue