forked from pub-solar/os
Merge pull request 'Introduce option to enable autologin' (#83) from feature/add-flag-to-enable-autologin into main
Reviewed-on: https://git.b12f.io/pub-solar/os/pulls/83 Reviewed-by: teutat3s <teutates@mailbox.org>
This commit is contained in:
commit
b751593368
|
@ -26,6 +26,11 @@ in
|
|||
default = { };
|
||||
};
|
||||
};
|
||||
autologin.enable = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
description = "Feature flag enabling autologin after boot.";
|
||||
};
|
||||
wayland.software-renderer.enable = mkOption {
|
||||
type = types.bool;
|
||||
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 = {
|
||||
enable = true;
|
||||
|
|
Loading…
Reference in a new issue