From 4676c9e91d202d995e07df6121c7949b91a6ec6b Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Sat, 16 Dec 2023 11:34:20 -0800 Subject: [PATCH] imperium: Get TF2 working Requires launch option: LD_PRELOAD=$LD_PRELOAD:/run/current-system/sw/lib/libtcmalloc_minimal.so %command% DRG also runs through Proton but at a prohibitive framerate whenever things are onscreen --- flake.nix | 3 +++ machine/imperium/default.nix | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/flake.nix b/flake.nix index adefb03..6f57aae 100644 --- a/flake.nix +++ b/flake.nix @@ -61,6 +61,9 @@ system = "x86_64-linux"; modules = [ self.nixosModules.beatific + ({ ... }: { + environment.systemPackages = [ nixpkgs-2311.legacyPackages."i686-linux".gperftools ]; + }) ./machine/imperium ]; }; diff --git a/machine/imperium/default.nix b/machine/imperium/default.nix index be83a1c..a957a62 100644 --- a/machine/imperium/default.nix +++ b/machine/imperium/default.nix @@ -41,6 +41,13 @@ extraGroups = [ "networkmanager" ]; }; + # Configs needed to run TF2 on integrated graphics + programs.steam.enable = true; + nixpkgs.config.allowUnfree = true; + services.xserver.videoDrivers = [ "i915" ]; + hardware.opengl.enable = true; + hardware.opengl.driSupport32Bit = true; + environment.systemPackages = with pkgs; [ firefox libreoffice