2023-06-07 19:08:52 +05:30
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
let
|
|
|
|
myRetroarch =
|
|
|
|
(pkgs.retroarch.override {
|
|
|
|
cores = with pkgs.libretro; [
|
2023-12-22 07:56:08 +05:30
|
|
|
vba-m
|
2023-06-02 03:24:14 +05:30
|
|
|
desmume
|
|
|
|
dolphin
|
|
|
|
citra
|
|
|
|
genesis-plus-gx
|
|
|
|
];
|
2023-06-07 19:08:52 +05:30
|
|
|
});
|
|
|
|
in
|
|
|
|
{
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
# Games
|
|
|
|
gamehub
|
|
|
|
myRetroarch
|
2023-05-14 07:32:25 +05:30
|
|
|
airshipper
|
|
|
|
qjoypad
|
2023-08-13 22:44:31 +05:30
|
|
|
superTux
|
|
|
|
superTuxKart
|
2023-12-30 22:35:40 +05:30
|
|
|
|
|
|
|
# I installed these in distrobox
|
|
|
|
# and exported using distrobox-export
|
|
|
|
(pkgs.makeDesktopItem {
|
|
|
|
name = "pokefinder";
|
|
|
|
desktopName = "PokeFinder";
|
|
|
|
exec = "/home/emmet/.local/bin/pokefinder";
|
|
|
|
terminal = false;
|
|
|
|
type = "Application";
|
|
|
|
})
|
2023-05-14 07:32:25 +05:30
|
|
|
];
|
2023-12-02 22:16:03 +05:30
|
|
|
|
|
|
|
nixpkgs.config = {
|
|
|
|
allowUnfree = true;
|
|
|
|
allowUnfreePredicate = (_: true);
|
|
|
|
};
|
|
|
|
|
2023-06-07 19:08:52 +05:30
|
|
|
# The following 2 declarations allow retroarch to be imported into gamehub
|
|
|
|
# Set retroarch core directory to ~/.local/bin/libretro
|
|
|
|
# and retroarch core info directory to ~/.local/share/libretro/info
|
|
|
|
home.file.".local/bin/libretro".source = "${myRetroarch}/lib/retroarch/cores";
|
|
|
|
home.file.".local/share/libretro/info".source = fetchTarball {
|
|
|
|
url = "https://github.com/libretro/libretro-core-info/archive/refs/tags/v1.15.0.tar.gz";
|
|
|
|
sha256 = "004kgbsgbk7hn1v01jg3vj4b6dfb2cp3kcp5hgjyl030wqg1r22q";
|
|
|
|
};
|
2023-06-08 22:15:08 +05:30
|
|
|
# To get steam to import into gamehub, first install it as a flatpak, then
|
|
|
|
# Set steam directory to ~/.var/app/com.valvesoftware.Steam/.steam
|
2023-12-22 08:39:44 +05:30
|
|
|
|
|
|
|
#services.flatpak.packages = [
|
|
|
|
# "com.discordapp.Discord"
|
|
|
|
# "com.jaquadro.NBTExplorer"
|
|
|
|
#];
|
2023-05-14 07:32:25 +05:30
|
|
|
}
|