nixos-config/config/games/grapejuice.nix

58 lines
1.7 KiB
Nix
Raw Normal View History

2022-06-12 15:39:15 +00:00
{system, ...} @ args: {
lib,
config,
pkgs,
...
}: let
2022-03-05 19:16:12 +00:00
grapejuice_config = {
__version__ = 2;
2022-03-31 18:12:58 +00:00
__hardware_profiles__ = null;
2022-03-05 19:16:12 +00:00
show_fast_flag_warning = true;
no_daemon_mode = true;
release_channel = "master";
disable_updates = false;
ignore_wine_version = false;
try_profiling_hardware = false;
wineprefixes = [
{
2022-03-31 18:12:58 +00:00
id = "ec33b6a3-8b44-4179-baec-54cb5bc888cb";
2022-03-05 19:16:12 +00:00
priority = 0;
name_on_disk = "player";
display_name = "Player";
2022-04-07 09:36:43 +00:00
wine_home = "${pkgs.wineWowPackages.staging}";
2022-03-05 19:16:12 +00:00
dll_overrides = "dxdiagn=;winemenubuilder.exe=";
prime_offload_sink = -1;
use_mesa_gl_override = false;
enable_winedebug = false;
winedebug_string = "";
2022-03-31 18:12:58 +00:00
roblox_renderer = "OpenGL";
2022-06-12 15:39:15 +00:00
env = {};
2022-03-05 19:16:12 +00:00
hints = [
"player"
"app"
];
fast_flags = {
2022-06-12 15:39:15 +00:00
roblox_studio = {};
roblox_player = {};
roblox_app = {};
2022-03-05 19:16:12 +00:00
};
third_party = {
fps_unlocker = false;
2022-03-31 18:12:58 +00:00
dxvk = false;
2022-03-05 19:16:12 +00:00
};
}
];
};
grapejuiceJson = pkgs.writeText "grapejuice.json" (builtins.toJSON grapejuice_config);
2022-06-12 15:39:15 +00:00
in {
2022-03-05 19:16:12 +00:00
home.packages = [
pkgs.grapejuice
];
2022-06-12 15:39:15 +00:00
home.activation.grapejuiceSettings = lib.hm.dag.entryAfter ["writeBoundary"] ''
2022-04-13 09:31:20 +00:00
$DRY_RUN_CMD mkdir $VERBOSE_ARG -p $HOME/.config/brinkervii/grapejuice
$DRY_RUN_CMD rm $VERBOSE_ARG -f $HOME/.config/brinkervii/grapejuice/user_settings.json
$DRY_RUN_CMD cp $VERBOSE_ARG ${grapejuiceJson} $HOME/.config/brinkervii/grapejuice/user_settings.json
$DRY_RUN_CMD chmod +w $VERBOSE_ARG $HOME/.config/brinkervii/grapejuice/user_settings.json
'';
2022-03-05 19:16:12 +00:00
}