Include customSettings option to configure regreet #4

Merged
MathewHDYT merged 6 commits from main into main 2024-11-08 19:41:51 +01:00
Showing only changes of commit bc2f5767aa - Show all commits

View file

@ -102,10 +102,6 @@
}; };
}; };
programs.regreet = {
settings = lib.mkForce config.mods.regreet.customSettings;
};
environment.etc."greetd/environments".text = config.mods.greetd.environments; environment.etc."greetd/environments".text = config.mods.greetd.environments;
# should technically be the same, but this is configured instead in order to provide a decent out of the box login experience. # should technically be the same, but this is configured instead in order to provide a decent out of the box login experience.
@ -134,11 +130,13 @@
env=XCURSOR_SIZE,${toString config.mods.stylix.cursor.size} env=XCURSOR_SIZE,${toString config.mods.stylix.cursor.size}
env=QT_QPA_PLATFORMTHEME,qt5ct env=QT_QPA_PLATFORMTHEME,qt5ct
exec-once=regreet --style /home/${username}/.config/gtk-3.0/gtk.css; hyprctl dispatch exit exec-once=regreet --style /home/${username}/.config/gtk-3.0/gtk.css --config /home/${username}/.config/regreet/regreet.toml; hyprctl dispatch exit
''; '';
# unlock GPG keyring on login # unlock GPG keyring on login
security.pam.services.greetd.enableGnomeKeyring = true; security.pam.services.greetd.enableGnomeKeyring = true;
} // lib.optionalAttrs (options ? home) {
xdg.configFile."regreet/regreet.toml".source = (pkgs.formats.toml { }).generate "regreet" config.mods.regreet.customSettings;
} }
); );
} }