Nix-Config/hosts/apollo/autologin.nix
2026-10-03 23:31:24 -05:00

17 lines
No EOL
332 B
Nix

{ ... }:
{
services.getty = {
autologinUser = "nyxerinys";
autologinOnce = true;
restartIfChanged = false;
};
systemd.defaultUnit = "graphical.target";
programs.zsh.loginShellInit = ''
if [[ "$TTY" == "/dev/tty1" ]] && uwsm check may-start; then
exec uwsm start hyprland-uwsm.desktop
fi
'';
}