Personal Nix setup
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add ntsync

+12 -4
+12 -4
modules/apps/games.nix
··· 21 21 }; 22 22 23 23 config = mkIf (cfg.enable && cfg.games.enable) { 24 - boot.kernel.sysctl = { 25 - "kernel.unprivileged_userns_clone" = true; 24 + boot = { 25 + kernel.sysctl."kernel.unprivileged_userns_clone" = true; 26 + kernelModules = [ "ntsync" ]; 26 27 }; 27 28 28 29 environment.sessionVariables = { 29 30 PROTONPATH = "${pkgs.proton-ge-bin.steamcompattool}/"; 31 + PROTON_USE_NTSYNC = mkDefault 1; 30 32 }; 31 33 34 + services.udev.packages = [ 35 + (pkgs.writeTextFile { 36 + name = "ntsync-udev-rules"; 37 + text = ''KERNEL=="ntsync", MODE="0660", TAG+="uaccess"''; 38 + destination = "/etc/udev/rules.d/70-ntsync.rules"; 39 + }) 40 + ]; 41 + 32 42 hardware.steam-hardware.enable = true; 33 43 users.users."${user}".extraGroups = [ "gamemode" ]; 34 44 ··· 49 59 }); 50 60 env = { 51 61 PROTON_ENABLE_WAYLAND = "1"; 52 - PROTON_ENABLE_HDR = "1"; 53 62 }; 54 63 args = [ 55 64 "--backend" "wayland" 56 65 "--adaptive-sync" 57 66 "--expose-wayland" 58 - "--hdr-enabled" 59 67 "--immediate-flips" 60 68 "--force-grab-cursor" 61 69 "--rt"