diff --git a/hosts/modules/gui/sxmo/default.nix b/hosts/modules/gui/sxmo/default.nix index 74de4294..823af3b8 100644 --- a/hosts/modules/gui/sxmo/default.nix +++ b/hosts/modules/gui/sxmo/default.nix @@ -349,7 +349,16 @@ in services.greetd = { enable = true; settings.default_session.command = "${pkgs.phog}/bin/phog"; + # this would be nice for debugging, but greetd swallows the logs: + # settings.default_session.command = + # let + # launch-phog = pkgs.writeShellScriptBin "launch-phog" '' + # echo "launching phog..." + # G_MESSAGES_DEBUG=all ${pkgs.phog}/bin/phog + # ''; + # in "${launch-phog}/bin/launch-phog" ; }; + environment.pathsToLink = [ "/share/wayland-sessions" ]; }) # old, greeterless options: diff --git a/overlays/cross.nix b/overlays/cross.nix index f96cacc0..60ac61ce 100644 --- a/overlays/cross.nix +++ b/overlays/cross.nix @@ -1339,6 +1339,9 @@ in { # ''; postPatch = (upstream.postPatch or "") + '' sed -i /phog_plugins_dir/d build-aux/post_install.py + substituteInPlace src/greetd.c \ + --replace '/usr/share/wayland-sessions' '/run/current-system/sw/share/wayland-sessions/' \ + --replace '/usr/share/xsessions' '/run/current-system/sw/share/xsessions' ''; preFixup = (upstream.preFixup or "") + '' gappsWrapperArgs+=(