diff --git a/modules/nixos/gaming.nix b/modules/nixos/gaming.nix index fcc0582..bdb67c4 100644 --- a/modules/nixos/gaming.nix +++ b/modules/nixos/gaming.nix @@ -8,8 +8,21 @@ crony.gaming.enable = lib.mkEnableOption "enable gaming related stuff, like steam and gamemode"; }; config = lib.mkIf config.crony.gaming.enable { + # Install steam programs.steam.enable = true; + # Enable gamescope programs.steam.gamescopeSession.enable = true; + # Install gamemode programs.gamemode.enable = true; + # Setup esync + systemd.extraConfig = "DefaultLimitNOFILE=1048576"; + security.pam.loginLimits = [ + { + domain = "*"; + type = "hard"; + item = "nofile"; + value = "1048576"; + } + ]; }; }