nixos-config/config/games/grapejuice.nix

60 lines
1.7 KiB
Nix
Raw Normal View History

args: {
2022-06-12 16:39:15 +01:00
lib,
config,
pkgs,
2023-01-13 17:15:00 +01:00
nixpkgs,
2022-06-12 16:39:15 +01:00
...
}: let
2023-01-13 17:15:00 +01:00
x86_64-linux-pkgs = import nixpkgs {system = "x86_64-linux";};
2022-03-05 20:16:12 +01:00
grapejuice_config = {
__version__ = 2;
2022-03-31 19:12:58 +01:00
__hardware_profiles__ = null;
2022-03-05 20:16:12 +01: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 19:12:58 +01:00
id = "ec33b6a3-8b44-4179-baec-54cb5bc888cb";
2022-03-05 20:16:12 +01:00
priority = 0;
name_on_disk = "player";
display_name = "Player";
2023-01-13 17:15:00 +01:00
wine_home = "${x86_64-linux-pkgs.wineWowPackages.staging}";
2022-03-05 20:16:12 +01:00
dll_overrides = "dxdiagn=;winemenubuilder.exe=";
prime_offload_sink = -1;
use_mesa_gl_override = false;
enable_winedebug = false;
winedebug_string = "";
2022-03-31 19:12:58 +01:00
roblox_renderer = "OpenGL";
2022-06-12 16:39:15 +01:00
env = {};
2022-03-05 20:16:12 +01:00
hints = [
"player"
"app"
];
fast_flags = {
2022-06-12 16:39:15 +01:00
roblox_studio = {};
roblox_player = {};
roblox_app = {};
2022-03-05 20:16:12 +01:00
};
third_party = {
fps_unlocker = false;
2022-03-31 19:12:58 +01:00
dxvk = false;
2022-03-05 20:16:12 +01:00
};
}
];
};
grapejuiceJson = pkgs.writeText "grapejuice.json" (builtins.toJSON grapejuice_config);
2022-06-12 16:39:15 +01:00
in {
2022-03-05 20:16:12 +01:00
home.packages = [
2023-01-13 17:15:00 +01:00
x86_64-linux-pkgs.grapejuice
2022-03-05 20:16:12 +01:00
];
2022-06-12 16:39:15 +01:00
home.activation.grapejuiceSettings = lib.hm.dag.entryAfter ["writeBoundary"] ''
2022-04-13 10:31:20 +01: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 20:16:12 +01:00
}