aboutsummaryrefslogtreecommitdiff
path: root/nixos/nixosModules/greetd.nix
blob: f48c291d1e16ca5196a0653c589b2ec52314efca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ pkgs, config, lib, inputs, outputs, ... }:

{
  imports = [
    inputs.stylix.nixosModules.stylix
  ];
  
  options = {
    greetd.enable = lib.mkEnableOption "enable greetd";
  };
  config = lib.mkIf config.greetd.enable {
    services.greetd = {
      enable = true;
      settings = {
        default_session = {
          command = "${pkgs.greetd.tuigreet}/bin/tuigreet -t -r -c Hyprland";
          user = "jerpo";
        };
      };
    };
  };
}