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

Linux

48048 readers
722 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

you are viewing a single comment's thread
view the rest of the comments
[–] mobsenpai@lemmy.world 1 points 1 week 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.