From 71648d1b3d0a8b4a4363da80bbb72ddb48d78d93 Mon Sep 17 00:00:00 2001 From: "Alexandre Cavalheiro S. Tiago da Silva" Date: Fri, 26 Apr 2024 07:49:28 -0300 Subject: [PATCH] scripts(steam): remove RADV specification we dont use amdvlk, also disable dither --- scripts/steam/launch.sh | 4 +++- scripts/steam/launch_native.sh | 9 ++++++--- services/archi.nix | 19 +++++++++++++++++++ 3 files changed, 28 insertions(+), 4 deletions(-) create mode 100644 services/archi.nix diff --git a/scripts/steam/launch.sh b/scripts/steam/launch.sh index 1bfdf23..722fb47 100755 --- a/scripts/steam/launch.sh +++ b/scripts/steam/launch.sh @@ -1,8 +1,10 @@ #!/bin/sh + export MANGOHUD=1 # https://docs.mesa3d.org/envvars.html -export AMD_VULKAN_ICD="RADV" +export MESA_NO_DITHER=1 # Disables dither +export MESA_BACK_BUFFER=pixmap # For X only export DXVK_ASYNC=1 diff --git a/scripts/steam/launch_native.sh b/scripts/steam/launch_native.sh index 639baf4..3ff1fe9 100755 --- a/scripts/steam/launch_native.sh +++ b/scripts/steam/launch_native.sh @@ -1,6 +1,9 @@ #!/bin/sh -# https://docs.mesa3d.org/envvars.html -export AMD_VULKAN_ICD="RADV" +export MANGOHUD=1 -mangohud gamemoderun "$@" +# https://docs.mesa3d.org/envvars.html +export MESA_NO_DITHER=1 # Disables dither +export MESA_BACK_BUFFER=pixmap # For X only + +gamemoderun "$@" diff --git a/services/archi.nix b/services/archi.nix new file mode 100644 index 0000000..e03e5f9 --- /dev/null +++ b/services/archi.nix @@ -0,0 +1,19 @@ +{ ... }: + +{ + services.archisteamfarm = { + enable = true; + web-ui.enable = true; + + # bots.wizardlink = { + # enabled = true; + # passwordFile = /var/lib/asf/bot_info/wizardlink.password; + # username = builtins.readFile /var/lib/asf/bot_info/wizardlink.username; + # + # settings = { + # CustomGamePlayedWhileFarming = "In the fields"; + # CustomGamePlayedWhileIdle = "Out from the fields"; + # }; + # }; + }; +}