nixos+greetd+hyprland error (github.com)
from mobsenpai@lemmy.world to linux@lemmy.ml on 28 Oct 09:55
https://lemmy.world/post/21359109

Edit: Solved, check the comments

cross-posted from: lemmy.world/post/21359091

Using this works:

    services.greetd = {
      enable = true;
      settings = {
        initial_session = {
          command = "Hyprland";
          user = "yashraj";
        };
        default_session = {
          command = "${lib.getExe pkgs.greetd.tuigreet} --time --cmd Hyprland";
          user = "yashraj";
        };
      };
    };

But using this doesn’t:

    services.greetd = {
      enable = true;
      settings = {
        default_session = {
          user = "yashraj";
          command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --sessions ${pkgs.hyprland}/share/wayland-session --remember --remember-session";
        };
      };
    };

I wan’t to be able to use –sessions. what could I be doing wrong? I am using latest nixos stable.

The only error returned here is after I enter my username ‘yashraj’ then my password ‘nixos’ is: expected Args or Cancel, got Pamresponse {resp: some(“nixos”)}

Notes:

I haven’t commited the greetd file to my github yet. But I’ve still attached the link to my github if it may be relevant to solve this issue.

Please give any info

#linux

threaded - newest

balsoft@lemmy.ml on 28 Oct 10:08 next collapse

I think you should still pass –cmd Hyprland to it, no?

mobsenpai@lemmy.world on 28 Oct 10:58 collapse

I am basing my config on this github.com/JManch/nixos/blob/main/…/greetd.nix

And I don’t see 'em using –cmd only difference I’ve noticed so far is that they use a flake to define the package of hyprland.

fl42v@lemmy.ml on 28 Oct 22:35 collapse

Looks like here may be your issue: github.com/apognu/tuigreet/issues/140

Stable Tuigreet is 0.9.0, which is affected, so if using that, makes sense to pull it from unstable otherwise just update, I guess

mobsenpai@lemmy.world on 29 Oct 15:16 collapse

Yeah you’re right. you’re a lifesaver, was frustrated the whole day abt it. Much love to you.