Introduce option to enable autologin

This option allows to disable autologin which is enabled by default.
This commit is contained in:
Hendrik Sokolowski 2022-05-03 19:11:25 +02:00
parent 5e01e35e38
commit 3ce121ce60

View file

@ -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;