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:
hensoko 2022-05-03 17:54:32 +00:00
commit b751593368

View file

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