nixos/modules/greetd.nix

17 lines
403 B
Nix
Raw Normal View History

2025-02-06 11:58:03 +01:00
{ config, lib, pkgs, ... }:
{
options.services.greetd-hyprland.enable = lib.mkEnableOption "Enable GreetD with TUI-based login.";
config = lib.mkIf config.services.greetd-hyprland.enable {
services.greetd = {
enable = true;
settings = {
default_session = {
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd Hyprland";
};
};
};
};
}