Gaming/pcsx2: configure declaratively
This commit is contained in:
parent
f13ac0b8ec
commit
f6cb581dd2
1 changed files with 18 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue