2022-12-18 16:33:31 +00:00
|
|
|
args: {
|
2022-06-12 15:39:15 +00:00
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
pkgs,
|
2023-01-13 16:15:00 +00:00
|
|
|
nixpkgs,
|
2022-06-12 15:39:15 +00:00
|
|
|
...
|
|
|
|
}: let
|
2023-01-13 16:15:00 +00:00
|
|
|
x86_64-linux-pkgs = import nixpkgs {system = "x86_64-linux";};
|
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";
|
2023-01-13 16:15:00 +00:00
|
|
|
wine_home = "${x86_64-linux-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
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2022-03-12 08:32:17 +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 = [
|
2023-01-13 16:15:00 +00:00
|
|
|
x86_64-linux-pkgs.grapejuice
|
2022-03-05 19:16:12 +00:00
|
|
|
];
|
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
|
2022-03-12 08:32:17 +00:00
|
|
|
$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
|
|
|
}
|