diff --git a/hosts/goober/features/hardware/nvidia.nix b/hosts/goober/features/hardware/nvidia.nix index ade3976..88db6a0 100644 --- a/hosts/goober/features/hardware/nvidia.nix +++ b/hosts/goober/features/hardware/nvidia.nix @@ -1,6 +1,10 @@ { config, pkgs, ... }: { + environment.systemPackages = with pkgs; [ + glxinfo + ]; + boot.blacklistedKernelModules = [ "nouveau" ]; hardware.graphics = { enable = true; diff --git a/shared/client/games.nix b/shared/client/games.nix index 90d44c1..3771e06 100644 --- a/shared/client/games.nix +++ b/shared/client/games.nix @@ -1,18 +1,34 @@ -{config, pkgs, ...}: { - programs.steam = { - enable = true; - remotePlay.openFirewall = true; - dedicatedServer.openFirewall = true; + config, + lib, + pkgs, + ... +}: +{ + programs.steam = { + enable = true; + remotePlay.openFirewall = true; + dedicatedServer.openFirewall = true; - nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ - "steam" - "steam-original" - "steam-run" - ]; + nixpkgs.config.allowUnfreePredicate = + pkg: + builtins.elem (lib.getName pkg) [ + "steam" + "steam-original" + "steam-run" + ]; - environment.systemPackages = with pkgs; [ - lutris - ]; - }; + environment.systemPackages = with pkgs; [ + lutris + ]; + systemd.extraConfig = "DefaultLimitNOFILE=524288"; + security.pam.loginLimits = [ + { + domain = "misschloe777"; + type = "hard"; + item = "nofile"; + value = "524288"; + } + ]; + }; }