Gaming/pcsx2: configure declaratively

This commit is contained in:
Toast 2024-04-29 10:27:39 +02:00
parent f13ac0b8ec
commit f6cb581dd2

View file

@ -1,4 +1,4 @@
{pkgs, ...}: let
{pkgs, lib, ...}: let
ps2-isos = pkgs.symlinkJoin {
name = "ps2-isos";
paths = [
@ -30,6 +30,23 @@ in {
];
file."Games/Isos/PS2".source = compressed-ps2-isos;
};
xdg.configFile = {
#PCSX2 silently overwrites the symlink so I need to force it's creation
"PCSX2/inis/PCSX2.ini".force = true;
"PCSX2/inis/PCSX2.ini".text = lib.generators.toINI {
listsAsDuplicateKeys = true;
} {
UI = {
SettingsVersion = 1;
};
Folders = {
Bios = "/home/toast/.local/share/PCSX2/bios";
};
GameList.RecursivePaths = [
"/home/toast/Games/Isos/PS2/"
];
};
};
xdg.dataFile = {
# I would prefer to use symlinkJoin like I do for the ISOs, but
# the bios folder needs to be writable to store the bios settings