system/services/regreet: ensure that regreet starts dbus session

This commit is contained in:
Anthony Rodriguez 2024-10-09 19:22:43 +02:00
parent fcd88bfa8e
commit 8fef768f4f
Signed by: nezia
GPG key ID: EE3BE97C040A86CE

View file

@ -16,10 +16,6 @@ in {
programs.regreet = {
enable = true;
package = pkgs.greetd.regreet;
cageArgs = [
"-s"
"-d"
];
settings = {
background = {
path = mkDefault config.style.wallpaper;
@ -36,6 +32,17 @@ in {
};
};
};
services.greetd = {
enable = true;
settings = rec {
default_session = {
command = "${lib.getExe pkgs.cage} -s -d -- ${lib.getExe config.programs.regreet.package}";
user = "greeter";
};
initial_session = default_session;
};
};
security.pam.services.greetd = {
enableGnomeKeyring = true;
fprintAuth = false;