Nix-Config/hosts/apollo/autologin.nix

17 lines
No EOL
356 B
Nix

{ ... }:
{
services.getty = {
autologinUser = "nyxerinys";
autologinOnce = true;
};
systemd.services."getty@".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
'';
}