Address code review feedback: improve comments for vm.max_map_count and nerd fonts

Co-authored-by: ragusa-it <196988693+ragusa-it@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-01 19:36:31 +00:00
parent bf80ac7579
commit 41de438583
2 changed files with 7 additions and 4 deletions

View File

@@ -121,9 +121,9 @@
# FONTS # FONTS
# -------------------------------------------------------------------------- # --------------------------------------------------------------------------
fonts.packages = with pkgs; [ fonts.packages = with pkgs; [
# Nerd fonts - syntax changed in NixOS 25.05+ # Nerd fonts - syntax changed in nixpkgs after 24.05
# Old syntax was: (nerdfonts.override { fonts = [ "JetBrainsMono" ]; }) # If using older nixpkgs: (nerdfonts.override { fonts = [ "JetBrainsMono" ]; })
# New syntax is individual packages: # Current nixpkgs-unstable uses individual packages:
nerd-fonts.jetbrains-mono nerd-fonts.jetbrains-mono
# Other fonts # Other fonts

View File

@@ -85,7 +85,10 @@
boot.kernel.sysctl = { boot.kernel.sysctl = {
# Reduce swappiness for gaming # Reduce swappiness for gaming
"vm.swappiness" = 10; "vm.swappiness" = 10;
# Increase max map count (needed for some games) # Increase max map count for games requiring many memory mappings.
# This value (2^31 - 6) is the maximum safe value for signed 32-bit integers.
# Games like Star Citizen, Hogwarts Legacy, and some Unity/Unreal titles
# may crash without this setting due to high mmap requirements.
"vm.max_map_count" = 2147483642; "vm.max_map_count" = 2147483642;
}; };