40 lines
1.1 KiB
Nix
40 lines
1.1 KiB
Nix
{ pkgs, ... }:
|
|
let
|
|
snes-roms = [
|
|
# ActRaiser
|
|
( pkgs.fetchzip {
|
|
url = "https://myrient.erista.me/files/No-Intro/Nintendo%20-%20Super%20Nintendo%20Entertainment%20System/ActRaiser%20%28USA%29.zip";
|
|
hash = "sha256-yxIL5Pqlp8xsx7wvNO1MlB8ffDjS0xpE+yrEfMj61As=";
|
|
} )
|
|
# Kirby Super Star
|
|
( pkgs.fetchzip {
|
|
url = "https://myrient.erista.me/files/No-Intro/Nintendo%20-%20Super%20Nintendo%20Entertainment%20System/Kirby%20Super%20Star%20%28USA%29.zip";
|
|
hash = "sha256-NX5OjCthf4ZiAhamclRBRk8GiMjZX3JLeShm8sQdDfc=";
|
|
} )
|
|
in
|
|
{
|
|
home-manager.users.toast = {
|
|
home = {
|
|
packages = [(
|
|
pkgs.retroarch.override {
|
|
cores = with pkgs.libretro; [
|
|
snes9x
|
|
];
|
|
settings = {
|
|
video_driver = "vulkan";
|
|
video_fullscreen = "true";
|
|
};
|
|
}
|
|
)];
|
|
file."Games/Roms/SNES/" = {
|
|
onChange = ''
|
|
${pkgs.retroarch}/bin/retroarch --scan "/home/toast/Games/Roms/SNES"
|
|
'';
|
|
source = pkgs.symlinkJoin {
|
|
name = "snes-roms";
|
|
paths = [ snes-roms ];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|