Gaming/retroarch: store roms in list
This commit is contained in:
parent
1f281357aa
commit
3ee043ab13
1 changed files with 14 additions and 6 deletions
|
|
@ -1,13 +1,16 @@
|
|||
{ pkgs, ... }:
|
||||
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";
|
||||
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";
|
||||
hash = "sha256-NX5OjCthf4ZiAhamclRBRk8GiMjZX3JLeShm8sQdDfc=";
|
||||
};
|
||||
} )
|
||||
in
|
||||
{
|
||||
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";
|
||||
paths = [ actraiser kirby-super-star ];
|
||||
paths = [ snes-roms ];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue