retronix/games.nix

40 lines
983 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-17 13:37:12 +01:00
"arcade" = {
2024-01-06 22:42:36 +01:00
extension = ".sh";
2024-01-18 18:56:06 +01:00
games = with pkgs.roms; mapRetroarchConfig {
additionalConfig.input_remapping_directory = "${./remap_dir}";
} [
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 = {
2024-01-18 18:53:49 +01:00
inputCfgFile = mkFile "es_input.cfg" ./es-config/es_input.cfg;
settingsCfgFile = mkFile "es_settings.cfg" ./es-config/es_settings.cfg;
2024-01-17 13:37:12 +01:00
themes = {
"ComicBook" = pkgs.fetchFromGitHub {
owner = "TMNTturtleguy";
repo = "es-theme-ComicBook";
rev = "master";
hash = "sha256-Mma7/5osIvTdTM8Z0vkJBW/4p3O6wms6nBApxB7+IiA=";
};
};
2024-01-17 13:37:05 +01:00
};
2023-12-30 18:38:14 +01:00
};
}