this post was submitted on 28 Oct 2024
14 points (81.8% liked)

Linux

48287 readers
608 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
 

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
[–] balsoft@lemmy.ml 3 points 3 weeks ago* (last edited 3 weeks ago) (1 children)

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

[–] mobsenpai@lemmy.world 1 points 3 weeks 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.

[–] fl42v@lemmy.ml 2 points 3 weeks ago (1 children)

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 3 weeks ago

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