diff --git a/config/etc/systemd/system/getty@tty1.service.d/autologin.conf b/config/etc/systemd/system/getty@tty1.service.d/autologin.conf new file mode 100644 index 0000000..4cc4de1 --- /dev/null +++ b/config/etc/systemd/system/getty@tty1.service.d/autologin.conf @@ -0,0 +1,3 @@ +[Service] +ExecStart= +ExecStart=-/sbin/agetty --autologin emulation --noclear %I $TERM diff --git a/config/etc/systemd/system/roms.mount b/config/etc/systemd/system/roms.mount new file mode 100644 index 0000000..72f109b --- /dev/null +++ b/config/etc/systemd/system/roms.mount @@ -0,0 +1,12 @@ +[Unit] +Description=ROM Storage (Primary SD) +After=local-fs.target + +[Mount] +What=/dev/mmcblk0p5 +Where=/roms +Type=auto +Options=defaults,noatime + +[Install] +WantedBy=multi-user.target diff --git a/config/etc/systemd/system/roms2.mount b/config/etc/systemd/system/roms2.mount new file mode 100644 index 0000000..0fa9380 --- /dev/null +++ b/config/etc/systemd/system/roms2.mount @@ -0,0 +1,11 @@ +[Unit] +Description=ROM Storage (Second SD Card) + +[Mount] +What=/dev/mmcblk1p1 +Where=/roms2 +Type=auto +Options=defaults,noatime,nofail + +[Install] +WantedBy=multi-user.target diff --git a/config/etc/udev/rules.d/99-sdcard2.rules b/config/etc/udev/rules.d/99-sdcard2.rules new file mode 100644 index 0000000..c344ad7 --- /dev/null +++ b/config/etc/udev/rules.d/99-sdcard2.rules @@ -0,0 +1,2 @@ +# Auto-detect second SD card (mmcblk1p1) and trigger mount +ACTION=="add", KERNEL=="mmcblk1p1", TAG+="systemd", ENV{SYSTEMD_WANTS}="roms2.mount" diff --git a/config/home/emulation/.bash_profile b/config/home/emulation/.bash_profile new file mode 100644 index 0000000..1c6cbfb --- /dev/null +++ b/config/home/emulation/.bash_profile @@ -0,0 +1,4 @@ +# Auto-start X on tty1 +if [ -z "$DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]; then + exec startx +fi diff --git a/config/home/emulation/.config/retroarch/retroarch.cfg b/config/home/emulation/.config/retroarch/retroarch.cfg new file mode 100644 index 0000000..23a27a2 --- /dev/null +++ b/config/home/emulation/.config/retroarch/retroarch.cfg @@ -0,0 +1,22 @@ +# RetroArch configuration for H700 +video_driver = "gl" +video_fullscreen = "true" +video_vsync = "true" + +# Input +input_autodetect_enable = "true" +input_joypad_driver = "udev" + +# Directories +system_directory = "/roms/bios" +savefile_directory = "/roms/saves" +savestate_directory = "/roms/saves" +screenshot_directory = "/roms/screenshots" +libretro_directory = "/home/emulation/.config/retroarch/cores" +libretro_info_path = "/usr/share/libretro/info" + +# Audio +audio_driver = "alsa" + +# Menu +menu_driver = "ozone" diff --git a/config/home/emulation/.xinitrc b/config/home/emulation/.xinitrc new file mode 100644 index 0000000..2a9c0ef --- /dev/null +++ b/config/home/emulation/.xinitrc @@ -0,0 +1,8 @@ +#!/bin/bash +# Disable screen blanking +xset s off +xset -dpms +xset s noblank + +# Launch EmulationStation-DE +exec /usr/local/bin/EmulationStation-DE.AppImage --no-sandbox