Greetd

From NixOS Wiki
Revision as of 13:53, 30 May 2022 by imported>Onny (Initial page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

greetd is a minimal login manager.

Usage

In this minimal example, the Wayland compository Sway automatically gets executed by the user myuser after successfull boot:

/etc/nixos/configuration.nix
services.greetd = {
  enable = true;
  settings = rec {
    initial_session = {
      command = "${pkgs.sway}/bin/sway";
      user = "myuser";
    };
    default_session = initial_session;
  };
};