🎮 Declarative RetroArch module for Home Manager – with core selection and secure secret handling (RetroAchievements).
This module lets you configure RetroArch fully declaratively in your NixOS + Home Manager setup:
- Choose which emulator cores you want
- Inject your
cheevos_usernameandcheevos_passwordsafely via agenix - Generate
~/.config/retroarch/retroarch.cfgon the fly, fully controlled by your configuration
No manual RetroArch fiddling required. Ever.
- 📦 Declarative install of RetroArch and libretro cores
- 🔐 Secrets handled via agenix, not hardcoded
- 📝 Generates a working
retroarch.cfgfor you - 🤓 Designed for both Nix veterans and new users
In your flake.nix:
{
inputs.retroarch-nix.url = "github:StoppingBuck/retroarch-nix";
}In your home.nix (or wherever you define Home Manager config):
{
imports = [ inputs.retroarch-nix.hmModules.retroarch ];
programs.retroarch = {
enable = true;
cores = {
snes9x.enable = true;
mupen64plus.enable = true;
};
settings = {
config_save_on_exit = "false";
cheevos_enable = "true";
};
};
}You’ll need to provide two secrets:
cheevos_usernamecheevos_password
This is done using agenix – see secrets/README.md for full guide.
- See
modules/retroarch.nixto understand the module - See
examples/home.nixfor a full working config
Open an issue or PR – contributions welcome!