Gaming/retroarch: store roms in list

This commit is contained in:
Toast 2023-12-31 01:09:45 +01:00
parent 1f281357aa
commit 3ee043ab13

View file

@ -1,13 +1,16 @@
{ pkgs, ... }: { pkgs, ... }:
let let
actraiser = pkgs.fetchzip { snes-roms = [
# ActRaiser
( pkgs.fetchzip {
url = "https://myrient.erista.me/files/No-Intro/Nintendo%20-%20Super%20Nintendo%20Entertainment%20System/ActRaiser%20%28USA%29.zip"; url = "https://myrient.erista.me/files/No-Intro/Nintendo%20-%20Super%20Nintendo%20Entertainment%20System/ActRaiser%20%28USA%29.zip";
hash = "sha256-yxIL5Pqlp8xsx7wvNO1MlB8ffDjS0xpE+yrEfMj61As="; hash = "sha256-yxIL5Pqlp8xsx7wvNO1MlB8ffDjS0xpE+yrEfMj61As=";
}; } )
kirby-super-star = pkgs.fetchzip { # 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"; url = "https://myrient.erista.me/files/No-Intro/Nintendo%20-%20Super%20Nintendo%20Entertainment%20System/Kirby%20Super%20Star%20%28USA%29.zip";
hash = "sha256-NX5OjCthf4ZiAhamclRBRk8GiMjZX3JLeShm8sQdDfc="; hash = "sha256-NX5OjCthf4ZiAhamclRBRk8GiMjZX3JLeShm8sQdDfc=";
}; } )
in in
{ {
home-manager.users.toast = { home-manager.users.toast = {
@ -23,9 +26,14 @@ in
}; };
} }
)]; )];
file."Games/Roms/SNES/".source = pkgs.symlinkJoin { file."Games/Roms/SNES/" = {
onChange = ''
${pkgs.retroarch}/bin/retroarch --scan "/home/toast/Games/Roms/SNES"
'';
source = pkgs.symlinkJoin {
name = "snes-roms"; name = "snes-roms";
paths = [ actraiser kirby-super-star ]; paths = [ snes-roms ];
};
}; };
}; };
}; };