Files
nixos/Droidnix/generated/modules/traveldroid/system/login-tuigreet.nix
T
2026-03-24 16:29:27 +00:00

29 lines
772 B
Nix

{ pkgs, user, ... } :
let
username = config.defaultUser or "henrov";
bashPath = "${pkgs.bash}/bin/bash";
tuigreetPath = "${pkgs.tuigreet}/bin/tuigreet";
hyprlandSess = "${pkgs.hyprland}/share/wayland-sessions";
in
{
services.greetd = {
enable = true;
settings.default_session = {
user = "greeter";
# Explicitly invoke bash to avoid missing-shell errors
command = "${bashPath} -c '${tuigreetPath} --time --remember --remember-session --sessions ${hyprlandSess}'";
};
};
systemd.services.greetd.serviceConfig = {
Type = "idle";
StandardInput = "tty";
StandardOutput = "tty";
StandardError = "journal";
TTYReset = true;
TTYVHangup = true;
TTYVTDisallocate = true;
};
}