2020-10-01 15:46:04 -07:00
|
|
|
{ options, config, lib, pkgs, ... }:
|
2020-03-28 22:48:43 -07:00
|
|
|
|
|
|
|
with lib;
|
2020-10-01 15:46:04 -07:00
|
|
|
with lib.my;
|
|
|
|
let cfg = config.modules.desktop.gaming.emulators;
|
|
|
|
in {
|
|
|
|
options.modules.desktop.gaming.emulators = {
|
|
|
|
psx.enable = mkBoolOpt false; # Playstation
|
|
|
|
ds.enable = mkBoolOpt false; # Nintendo DS
|
|
|
|
gb.enable = mkBoolOpt false; # GameBoy + GameBoy Color
|
|
|
|
gba.enable = mkBoolOpt false; # GameBoy Advance
|
|
|
|
snes.enable = mkBoolOpt false; # Super Nintendo
|
|
|
|
};
|
2020-03-28 22:48:43 -07:00
|
|
|
|
2020-10-01 15:46:04 -07:00
|
|
|
config = {
|
|
|
|
user.packages = with pkgs; [
|
|
|
|
(mkIf cfg.psx.enable epsxe)
|
|
|
|
(mkIf cfg.ds.enable desmume)
|
|
|
|
(mkIf (cfg.gba.enable ||
|
|
|
|
cfg.gb.enable ||
|
|
|
|
cfg.snes.enable)
|
|
|
|
higan)
|
|
|
|
];
|
2020-03-28 22:48:43 -07:00
|
|
|
};
|
|
|
|
}
|