forked from pub-solar/os
Introduce option to enable autologin
This option allows to disable autologin which is enabled by default.
This commit is contained in:
parent
5e01e35e38
commit
3ce121ce60
|
@ -26,6 +26,11 @@ in
|
||||||
default = { };
|
default = { };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
autologin.enable = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = true;
|
||||||
|
description = "Feature flag enabling autologin after boot.";
|
||||||
|
};
|
||||||
wayland.software-renderer.enable = mkOption {
|
wayland.software-renderer.enable = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
|
@ -54,7 +59,7 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.getty.autologinUser = mkForce "${psCfg.user.name}";
|
services.getty.autologinUser = mkIf cfg.autologin.enable "${psCfg.user.name}";
|
||||||
|
|
||||||
qt5 = {
|
qt5 = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
Loading…
Reference in a new issue