From 8fef768f4f830c04b1af088b1c2753d083ece2db Mon Sep 17 00:00:00 2001 From: Anthony Rodriguez Date: Wed, 9 Oct 2024 19:22:43 +0200 Subject: [PATCH] system/services/regreet: ensure that regreet starts dbus session --- system/services/regreet.nix | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/system/services/regreet.nix b/system/services/regreet.nix index 41c990e..e70502a 100644 --- a/system/services/regreet.nix +++ b/system/services/regreet.nix @@ -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;