sddm, with silentsddm

This commit is contained in:
Julia Lange 2026-02-10 23:35:37 -08:00
parent d02533517f
commit 085e8e45ac
Signed by: Julia
SSH key fingerprint: SHA256:5DJcfxa5/fKCYn57dcabJa2vN2e6eT0pBerYi5SUbto
4 changed files with 55 additions and 0 deletions

View file

@ -0,0 +1,24 @@
{ config, pkgs, lib, ... }:
{
options.tuigreet = {
enable = lib.mkEnableOption "enables tuigreet with greetd";
};
config = lib.mkIf config.tuigreet.enable {
services.greetd = let
wm =
if config.hyprland.enable then "Hyprland"
else (if config.niri.enable then "niri" else null);
in {
enable = true;
package = pkgs.tuigreet;
settings = {
default_session = lib.mkIf (wm != null) {
command = "${pkgs.tuigreet}/bin/tuigreet --time --cmd ${wm}";
user = "greeter";
};
};
};
};
}