From 233591afbb2ad75b5e7d9b95f6225b39a478df55 Mon Sep 17 00:00:00 2001 From: Joinemm Date: Sat, 4 May 2024 17:22:09 +0300 Subject: [PATCH] Drastically improve steam download speed --- home-modules/default.nix | 2 ++ home-modules/gaming.nix | 12 ++++++++++++ modules/gaming.nix | 3 --- 3 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 home-modules/gaming.nix diff --git a/home-modules/default.nix b/home-modules/default.nix index 8f222a7..3c54d7e 100644 --- a/home-modules/default.nix +++ b/home-modules/default.nix @@ -9,6 +9,7 @@ rec { dunst = import ./dunst.nix; firefox = import ./firefox.nix; flameshot = import ./flameshot.nix; + gaming = import ./gaming.nix; git = import ./git.nix; gtk = import ./gtk.nix; hidpi = import ./hidpi.nix; @@ -39,6 +40,7 @@ rec { dunst firefox flameshot + gaming git gtk imv diff --git a/home-modules/gaming.nix b/home-modules/gaming.nix new file mode 100644 index 0000000..da657d3 --- /dev/null +++ b/home-modules/gaming.nix @@ -0,0 +1,12 @@ +{pkgs, ...}: { + home.packages = with pkgs; [ + prismlauncher + mangohud + ]; + + # makes steam download a lot faster + home.file.".steam/steam/steam_dev.cfg".text = '' + @nClientDownloadEnableHTTP2PlatformLinux 0 + @fDownloadRateImprovementToAddAnotherConnection 1.0 + ''; +} diff --git a/modules/gaming.nix b/modules/gaming.nix index 3420c6d..a8ecf6f 100644 --- a/modules/gaming.nix +++ b/modules/gaming.nix @@ -44,9 +44,6 @@ vulkan-loader vulkan-validation-layers vulkan-extension-layer - - prismlauncher # open source minecraft launcher protontricks - mangohud ]; }