18
submitted 3 days ago* (last edited 2 days ago) by mobsenpai@lemmy.world to c/linux@lemmy.ml

Edit: Solved, check the comments

cross-posted from: https://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

top 4 comments
sorted by: hot top controversial new old
[-] fl42v@lemmy.ml 2 points 3 days ago

Looks like here may be your issue: https://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 2 points 2 days ago

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

[-] balsoft@lemmy.ml 3 points 3 days ago* (last edited 3 days ago)

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

[-] mobsenpai@lemmy.world 1 points 3 days ago

I am basing my config on this https://github.com/JManch/nixos/blob/main/modules/nixos/services/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.

this post was submitted on 28 Oct 2024
18 points (100.0% liked)

Linux

47943 readers
1456 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS