dot
vizie's NixOS desktop: Hyprland, CachyOS kernel and gaming tweaks
| 1 | # Gaming: what cachyos-gaming-meta and cachyos-gaming-applications install. |
| 2 | { pkgs, ... }: |
| 3 | { |
| 4 | programs.steam = { |
| 5 | enable = true; |
| 6 | # Your default compatibility tool on CachyOS; registers under the same |
| 7 | # internal name, so Steam keeps using it (see pkgs/proton-cachyos). |
| 8 | extraCompatPackages = [ pkgs.proton-cachyos ]; |
| 9 | protontricks.enable = true; |
| 10 | # Steam's own CJK font, as wqy-zenhei on CachyOS. |
| 11 | fontPackages = [ pkgs.wqy_zenhei ]; |
| 12 | }; |
| 13 | |
| 14 | # Run games with gamemoderun %command% (CPU governor, I/O priority, renice). |
| 15 | programs.gamemode = { |
| 16 | enable = true; |
| 17 | enableRenice = true; |
| 18 | }; |
| 19 | |
| 20 | programs.gamescope = { |
| 21 | enable = true; |
| 22 | capSysNice = true; |
| 23 | }; |
| 24 | |
| 25 | # Xbox Wireless adapter (xone-dkms on CachyOS). |
| 26 | hardware.xone.enable = true; |
| 27 | |
| 28 | environment.systemPackages = with pkgs; [ |
| 29 | mangohud |
| 30 | vkbasalt |
| 31 | umu-launcher |
| 32 | faugus-launcher |
| 33 | protonplus |
| 34 | wowup-cf |
| 35 | vulkan-tools |
| 36 | mesa-demos |
| 37 | ]; |
| 38 | } |