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;