sddm, with silentsddm
This commit is contained in:
parent
d02533517f
commit
085e8e45ac
4 changed files with 55 additions and 0 deletions
|
|
@ -1,24 +0,0 @@
|
|||
{ 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue