summaryrefslogtreecommitdiffstats
path: root/usecases/desktop/graphical/greetd.nix
blob: 615b3b5e4489c687f582be6c1c43755edcd9adf8 (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
26
27
28
29
{
  config,
  pkgs,
  lib,
  ...
}:
let
  cfg = config.reborn.greetd;
in
{
  options.reborn.greetd = {
    enable = lib.mkEnableOption "Reborn greetd config";

    command = lib.mkOption {
      description = "Default session command";
      type = lib.types.str;
      default = "sway";
    };
  };

  config = lib.mkIf cfg.enable {
    services.greetd = {
      enable = true;
      vt = 6;
      settings.default_session.command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd ${cfg.command}";
    };

  };
}