Jump to content

Greetd: Difference between revisions

From NixOS Wiki
imported>Onny
Initial page
(No difference)

Revision as of 13:53, 30 May 2022

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;
  };
};