nixos/home-manager/features/retroarch.nix
2025-01-02 18:32:25 -08:00

23 lines
557 B
Nix

{ pkgs, lib, config, ... }: {
home.activation.retroarch-config-link = lib.hm.dag.entryAfter ["writeBoundary"] ''
run ln -s $VERBOSE_ARG \
${builtins.toPath /mnt/nas0/noe/games/retroarch} \
$HOME/.config/retroarch
'';
home.packages = [
(pkgs.retroarch.withCores (
cores: with cores; [
ppsspp
snes9x
dolphin
mupen64plus
desmume
vba-m
] ++ (if pkgs.system == "x86_64-linux" then [
# stuff that doesn't happen on ARM
pcsx2
] else [])
))
];
}