summaryrefslogtreecommitdiff
path: root/system/login/greetd.nix
blob: 74ab666db0cd90c120248e707cdde0e42910a1f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
  config,
  lib,
  ...
}: let
  inherit (lib) mkIf;
  cfg = config.login.greetd;
in {
  config = mkIf cfg.enable {
    services.greetd = {
      enable = true;
      restart = false;
      settings = let
        session = {
          command = cfg.session;
          user = config.user;
        };
      in {
        terminal.vt = 1;
        default_session = session;
        initial_session = session;
      };
    };
  };
}