nixcfg/nixosModules/desktop/greetd/default.nix

39 lines
824 B
Nix
Raw Normal View History

{
config,
lib,
...
}: {
config = lib.mkIf config.ar.desktop.greetd.enable {
security.pam.services.greetd = {
enableGnomeKeyring = true;
gnupg.enable = true;
kwallet.enable = true;
};
2024-06-22 16:03:05 -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;
};
};
services.greetd = {
enable = true;
settings.initial_session = lib.mkIf (config.ar.desktop.greetd.autologin != null) {
command = config.ar.desktop.greetd.session;
user = config.ar.desktop.greetd.autologin;
};
};
};
}