retronix/games.nix

30 lines
627 B
Nix
Raw Normal View History

2024-01-17 13:37:05 +01:00
{ lib, config, pkgs, ...}:
2024-01-15 15:14:30 +01:00
let
inherit (config.retronix.retroarch) mapRetroarchConfig;
2024-01-17 13:37:05 +01:00
mkFile = name: path: pkgs.runCommand name {} ''
mkdir -p $out
cp ${path} $out/${name}
'';
2024-01-15 15:14:30 +01:00
in
{
2024-01-06 22:42:36 +01:00
retronix = {
2023-12-30 18:38:14 +01:00
systems = {
2024-01-06 22:42:36 +01:00
"Arcade" = {
extension = ".sh";
2024-01-15 15:14:30 +01:00
games = with pkgs.roms; mapRetroarchConfig {} [
2024-01-06 22:42:36 +01:00
atetris
2024-01-10 23:55:23 +01:00
dkong
mario
neopong
pacman
spacedx
2024-01-06 22:42:36 +01:00
];
};
2023-12-30 18:38:14 +01:00
};
2024-01-17 13:37:05 +01:00
emulationstation = {
inputCfgFile = mkFile "es_input.cfg" ./es_input.cfg;
settingsCfgFile = mkFile "es_settings.cfg" ./es_settings.cfg;
};
2023-12-30 18:38:14 +01:00
};
}