aboutsummaryrefslogtreecommitdiff
path: root/modules/desktop/nixos/greeters/greetd.nix
blob: b612c86e8b92a3c1090382dba3b31164f57e7c4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
  config,
  lib,
  ...
}: let
  cfg = config.collinux.desktop.greetd;
in
  lib.mkIf cfg.enable {
    services.greetd = {
      enable = true;
      settings = rec {
        initial_session = {
          command = cfg.command;
          user = config.collinux.user.name;
        };
        default_session = initial_session;
      };
    };
  }