feat(nixos): autologin and start Hyprland at boot

This commit is contained in:
Mohammad Rafiq 2025-03-18 02:40:09 +08:00
parent eee331b384
commit 9eaa1e4670
No known key found for this signature in database
3 changed files with 12 additions and 0 deletions

View file

@ -2,5 +2,6 @@
imports = [ imports = [
./programs/hyprland.nix ./programs/hyprland.nix
./programs/hyprlock.nix ./programs/hyprlock.nix
./programs/getty.nix
]; ];
} }

View file

@ -0,0 +1,5 @@
{
services.getty = {
autologinUser = "rafiq";
};
}

View file

@ -4,5 +4,11 @@
enableCompletion = true; enableCompletion = true;
enableVteIntegration = true; enableVteIntegration = true;
# TODO: Look into whether we need to add the history attribute # TODO: Look into whether we need to add the history attribute
profileExtra = # bash
''
if [ -z "$WAYLAND_DISPLAY" ] && [ "$XDG_VTNR" -eq 1 ]; then
dbus-run-session Hyprland
fi
'';
}; };
} }