25 lines
679 B
Nix
25 lines
679 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
# Text login: greetd running the tuigreet greeter, which starts the session
|
|
# through the universal Wayland session manager.
|
|
let
|
|
hyprlandConfig = "/home/${config.user.name}/.config/hypr/hyprland.lua";
|
|
in
|
|
{
|
|
options.modules.desktop.session.login.enable =
|
|
lib.mkEnableOption "greetd with the tuigreet text greeter";
|
|
|
|
config = lib.mkIf config.modules.desktop.session.login.enable {
|
|
services.greetd = {
|
|
enable = true;
|
|
settings.default_session.command =
|
|
"${lib.getExe pkgs.tuigreet} --time --remember "
|
|
+ "--cmd 'HYPRLAND_CONFIG=${hyprlandConfig} uwsm start -e -D Hyprland hyprland.desktop'";
|
|
};
|
|
};
|
|
}
|