From 0f4dce7e6a8ef97fa432442492666248fda0dc7a Mon Sep 17 00:00:00 2001 From: "Alexandre Cavalheiro S. Tiago da Silva" Date: Tue, 27 Aug 2024 01:35:58 -0300 Subject: [PATCH 1/3] flake: update --- flake.lock | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/flake.lock b/flake.lock index 54320dc..31a0752 100644 --- a/flake.lock +++ b/flake.lock @@ -144,11 +144,11 @@ "xdph": "xdph" }, "locked": { - "lastModified": 1724442134, - "narHash": "sha256-RpA3GmcBvd6DLssIWfYKdDfiumLv8w4KIhDaI+//6ls=", + "lastModified": 1724701003, + "narHash": "sha256-kTceEi5B4t2u5oG3bKnGgZkHxFTsvYAUiAmyYA/6Y3o=", "ref": "refs/heads/main", - "rev": "688fe5c14781c63a1db23d4d02bf239283068ff6", - "revCount": 5131, + "rev": "eb42adc4c090918ad6be9fcb24066da8cdfd9bd0", + "revCount": 5145, "submodules": true, "type": "git", "url": "https://github.com/hyprwm/Hyprland" @@ -347,11 +347,11 @@ "nixpkgs": "nixpkgs_2" }, "locked": { - "lastModified": 1724377000, - "narHash": "sha256-TITxaXuhO8vDScZoE7i7E2BTXoJzZmKTk6qRkmI2d+o=", + "lastModified": 1724636274, + "narHash": "sha256-Q04D7AQRjNCUJIEo5YJeRdps0HcCgvEOvk5pAUHZlF0=", "owner": "Infinidoge", "repo": "nix-minecraft", - "rev": "b464de49b4d6ea8faf1988e02fc59c4908a7ff91", + "rev": "0baaf5d5781b171bb2e936b3013f963a233bc477", "type": "github" }, "original": { @@ -394,11 +394,11 @@ }, "nixpkgs_3": { "locked": { - "lastModified": 1724224976, - "narHash": "sha256-Z/ELQhrSd7bMzTO8r7NZgi9g5emh+aRKoCdaAv5fiO0=", + "lastModified": 1724479785, + "narHash": "sha256-pP3Azj5d6M5nmG68Fu4JqZmdGt4S4vqI5f8te+E/FTw=", "owner": "nixos", "repo": "nixpkgs", - "rev": "c374d94f1536013ca8e92341b540eba4c22f9c62", + "rev": "d0e1602ddde669d5beb01aec49d71a51937ed7be", "type": "github" }, "original": { @@ -442,11 +442,11 @@ ] }, "locked": { - "lastModified": 1724386575, - "narHash": "sha256-BxhvQ5uX2W9oJ6f/lDuKmgiNVRusLN01mWhJogvHpak=", + "lastModified": 1724645793, + "narHash": "sha256-z0QdJ8N24msqy6uakRNHpCsrNsswTA9/Evsd3+DOAZc=", "owner": "Gerg-L", "repo": "spicetify-nix", - "rev": "0fc9765ae6e9dc0daaebf6549e5e14ff5acff498", + "rev": "2e3b9ea2f89113d71ab57127ca7226253afd2660", "type": "github" }, "original": { From d54d01e85f3c5b827c1cf306ae31abad3ab133ad Mon Sep 17 00:00:00 2001 From: "Alexandre Cavalheiro S. Tiago da Silva" Date: Tue, 27 Aug 2024 01:36:29 -0300 Subject: [PATCH 2/3] minecraft: limit server to 6GB --- services/minecraft/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/minecraft/default.nix b/services/minecraft/default.nix index 2a3b6b3..eccb905 100644 --- a/services/minecraft/default.nix +++ b/services/minecraft/default.nix @@ -24,7 +24,7 @@ in package = pkgs.fabricServers.fabric-1_20_1.override { loaderVersion = "0.15.11"; }; autoStart = true; - jvmOpts = "-Xms512M -Xmx10112M -XX:+AlwaysPreTouch -XX:+DisableExplicitGC -XX:+UseG1GC -XX:+UnlockExperimentalVMOptions -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=4M -XX:TargetSurvivorRatio=90 -XX:G1NewSizePercent=50 -XX:G1MaxNewSizePercent=80 -XX:InitiatingHeapOccupancyPercent=10 -XX:G1MixedGCLiveThresholdPercent=50"; + jvmOpts = "-Xms512M -Xmx6016M -XX:+AlwaysPreTouch -XX:+DisableExplicitGC -XX:+UseG1GC -XX:+UnlockExperimentalVMOptions -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=4M -XX:TargetSurvivorRatio=90 -XX:G1NewSizePercent=50 -XX:G1MaxNewSizePercent=80 -XX:InitiatingHeapOccupancyPercent=10 -XX:G1MixedGCLiveThresholdPercent=50"; serverProperties = { allow-flight = true; From e27bb46a3306dbf0d1fb47cfd3d120b1e6a10aad Mon Sep 17 00:00:00 2001 From: "Alexandre Cavalheiro S. Tiago da Silva" Date: Tue, 27 Aug 2024 01:36:40 -0300 Subject: [PATCH 3/3] gamemode: disable softrealtime --- programs/gamemode.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/gamemode.ini b/programs/gamemode.ini index b8fa758..4fb8069 100644 --- a/programs/gamemode.ini +++ b/programs/gamemode.ini @@ -10,7 +10,7 @@ desiredgov=performance ; GameMode can change the scheduler policy to SCHED_ISO on kernels which support it (currently ; not supported by upstream kernels). Can be set to "auto", "on" or "off". "auto" will enable ; with 4 or more CPU cores. "on" will always enable. Defaults to "off". -softrealtime=auto +softrealtime=off ; GameMode can renice game processes. You can put any value between 0 and 20 here, the value ; will be negated and applied as a nice value (0 means no change). Defaults to 0.