2024-04-22 23:14:28 -04:00
|
|
|
{
|
|
|
|
config,
|
2024-06-04 01:18:46 -04:00
|
|
|
lib,
|
2024-04-22 23:14:28 -04:00
|
|
|
...
|
|
|
|
}: {
|
2024-06-26 22:13:02 -04:00
|
|
|
config = lib.mkIf config.ar.desktop.greetd.enable {
|
2024-06-22 15:29:41 -04:00
|
|
|
security.pam.services.greetd = {
|
|
|
|
enableGnomeKeyring = true;
|
|
|
|
gnupg.enable = true;
|
|
|
|
kwallet.enable = true;
|
2024-05-26 00:36:48 -04:00
|
|
|
};
|
2024-06-22 16:03:05 -04:00
|
|
|
|
2024-10-25 15:05:48 -04:00
|
|
|
programs.regreet = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
settings = {
|
|
|
|
background.fit =
|
|
|
|
if config.stylix.imageScalingMode == "fill"
|
|
|
|
then "Fill"
|
|
|
|
else "ScaleDown";
|
|
|
|
|
|
|
|
GTK.application_prefer_dark_theme =
|
|
|
|
if config.stylix.polarity == "dark"
|
|
|
|
then true
|
|
|
|
else false;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-07-18 21:05:35 -04:00
|
|
|
services.greetd = {
|
|
|
|
enable = true;
|
|
|
|
|
2024-10-25 15:05:48 -04:00
|
|
|
settings.initial_session = lib.mkIf (config.ar.desktop.greetd.autologin != null) {
|
|
|
|
command = config.ar.desktop.greetd.session;
|
|
|
|
user = config.ar.desktop.greetd.autologin;
|
|
|
|
};
|
2024-04-22 23:14:28 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|