Nix-Config/hosts/apollo/autologin.nix
2026-10-02 18:33:05 -05:00

16 lines
No EOL
302 B
Nix

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