Skip to content

Commit

Permalink
modules/platformOptimizations: Update steamos customizations (#235)
Browse files Browse the repository at this point in the history
  • Loading branch information
LovingMelody authored Feb 9, 2025
1 parent 76a2436 commit 8fc1002
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/platformOptimizations.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,18 @@
};

config = lib.mkIf config.programs.steam.platformOptimizations.enable {
# last cheched with https://steamdeck-packages.steamos.cloud/archlinux-mirror/jupiter-main/os/x86_64/steamos-customizations-jupiter-20240219.1-2-any.pkg.tar.zst
# last checked with https://steamdeck-packages.steamos.cloud/archlinux-mirror/jupiter-main/os/x86_64/steamos-customizations-jupiter-20250117.1-1-any.pkg.tar.zst
boot.kernel.sysctl = {
# 20-shed.conf
"kernel.sched_cfs_bandwidth_slice_us" = 3000;
# 20-net-timeout.conf
# This is required due to some games being unable to reuse their TCP ports
# if they're killed and restarted quickly - the default timeout is too large.
"net.ipv4.tcp_fin_timeout" = 5;
# 30-splitlock.conf
# Prevents intentional slowdowns in case games experience split locks
# This is valid for kernels v6.0+
"kernel.split_lock_mitigate" = 0;
# 30-vm.conf
# USE MAX_INT - MAPCOUNT_ELF_CORE_MARGIN.
# see comment in include/linux/mm.h in the kernel tree.
Expand Down

0 comments on commit 8fc1002

Please sign in to comment.