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"
|
login_cmd exec ${pkgs.stdenv.shell} ${dmcfg.session.script} "%session"
|
||||||
halt_cmd ${config.system.build.upstart}/sbin/shutdown -h now
|
halt_cmd ${config.system.build.upstart}/sbin/shutdown -h now
|
||||||
reboot_cmd ${config.system.build.upstart}/sbin/shutdown -r now
|
reboot_cmd ${config.system.build.upstart}/sbin/shutdown -r now
|
||||||
${if cfg.defaultUser != "" then "default_user " + cfg.defaultUser else ""}
|
${optionalString (cfg.defaultUser != "") ("default_user " + cfg.defaultUser)}
|
||||||
${if cfg.hideCursor then "hidecursor true" else ""}
|
${optionalString cfg.hideCursor "hidecursor true"}
|
||||||
|
${optionalString cfg.autoLogin "auto_login yes"}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Unpack the SLiM theme, or use the default.
|
# 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…
x
Reference in New Issue
Block a user