|
54 | 54 | powerManagement.cpuFreqGovernor = "performance";
|
55 | 55 | boot.kernelPackages = pkgs.linuxPackages_xanmod_latest;
|
56 | 56 |
|
57 |
| - # Taken from https://github.com/fufexan/nix-gaming |
58 |
| - boot.kernel.sysctl = { |
59 |
| - # 20-shed.conf |
60 |
| - "kernel.sched_cfs_bandwidth_slice_us" = 3000; |
61 |
| - # 20-net-timeout.conf |
62 |
| - # This is required due to some games being unable to reuse their TCP ports |
63 |
| - # if they're killed and restarted quickly - the default timeout is too large. |
64 |
| - "net.ipv4.tcp_fin_timeout" = 5; |
65 |
| - # 30-vm.conf |
66 |
| - # USE MAX_INT - MAPCOUNT_ELF_CORE_MARGIN. |
67 |
| - # see comment in include/linux/mm.h in the kernel tree. |
68 |
| - "vm.max_map_count" = 2147483642; |
69 |
| - }; |
70 |
| - |
71 | 57 | services.xserver.videoDrivers = ["modesetting"];
|
72 | 58 |
|
73 | 59 | hardware = {
|
|
100 | 86 | # services.easyeffects.enable = true;
|
101 | 87 | # services.easyeffects.preset = "Audio-Technica ATH-M30x";
|
102 | 88 |
|
103 |
| - programs.mangohud = { |
104 |
| - enable = true; |
105 |
| - enableSessionWide = false; |
106 |
| - }; |
107 |
| - |
108 | 89 | xdg.configFile."zed/settings.json".text = builtins.toJSON {
|
109 | 90 | tab_size = 2;
|
110 | 91 | ensure_final_newline_on_save = false;
|
|
199 | 180 | };
|
200 | 181 | };
|
201 | 182 |
|
202 |
| - # Allowed unfree packages |
203 |
| - nixpkgs.config.allowUnfreePredicate = pkg: |
204 |
| - builtins.elem (lib.getName pkg) [ |
205 |
| - "steam" |
206 |
| - "steam-run" |
207 |
| - "steam-original" |
208 |
| - "steam-unwrapped" |
209 |
| - ]; |
210 |
| - |
211 | 183 | # There is a module for this but i find nix -> yaml weird
|
212 | 184 | services.borgmatic.enable = true;
|
213 | 185 | environment.etc = {
|
|
246 | 218 | piper # For ratbagd
|
247 | 219 | borgbackup
|
248 | 220 | pkgs-unstable.zed-editor.fhs # Another text editor
|
249 |
| - |
250 |
| - # Game launcher |
251 |
| - lutris |
252 |
| - winetricks |
253 |
| - wineWowPackages.waylandFull |
254 |
| - blender-hip |
255 |
| - |
256 |
| - ( |
257 |
| - writeShellScriptBin |
258 |
| - "sgamescope" # [s]team [gamescope] |
259 |
| - |
260 |
| - '' |
261 |
| - gamescope \ |
262 |
| - -w ${builtins.toString config.const.screenWidth} \ |
263 |
| - -W ${builtins.toString config.const.screenWidth} \ |
264 |
| - -h ${builtins.toString config.const.screenHeight} \ |
265 |
| - -H ${builtins.toString config.const.screenHeight} \ |
266 |
| - -r ${builtins.toString config.const.refreshRate} -f steam |
267 |
| - '' |
268 |
| - ) |
269 | 221 | ];
|
270 |
| - |
271 |
| - # # This is the command for running all 3 programs at once that u put into steam |
272 |
| - # # gamemoderun gamescope -w 1920 -h 1080 -f -- mangohud %command% |
273 |
| - programs.steam = { |
274 |
| - enable = true; |
275 |
| - gamescopeSession.enable = true; |
276 |
| - # Load the extest library into Steam, to translate X11 input events to uinput events (for using Steam Input on Wayland). |
277 |
| - # extest.enable = true; |
278 |
| - extraCompatPackages = [pkgs-unstable.proton-ge-bin]; |
279 |
| - extraPackages = [ |
280 |
| - pkgs.gamescope |
281 |
| - pkgs.gamemode |
282 |
| - # pkgs.libpng |
283 |
| - # pkgs.libkrb5 |
284 |
| - # pkgs.keyutils |
285 |
| - # pkgs.libvorbis |
286 |
| - # pkgs.xorg.libXi |
287 |
| - # pkgs.libpulseaudio |
288 |
| - # pkgs.xorg.libXcursor |
289 |
| - # pkgs.stdenv.cc.cc.lib |
290 |
| - # pkgs.xorg.libXinerama |
291 |
| - # pkgs.xorg.libXScrnSaver |
292 |
| - ]; |
293 |
| - }; |
294 |
| - programs.gamemode.enable = true; |
295 |
| - programs.gamescope = { |
296 |
| - enable = true; |
297 |
| - capSysNice = true; # Breaks it inside of hyprland |
298 |
| - }; |
299 | 222 | }
|
0 commit comments