From e762116ed42a3eb118794c610faf47a0663b1018 Mon Sep 17 00:00:00 2001 From: Noa Aarts Date: Sat, 11 May 2024 10:56:44 +0200 Subject: [PATCH] steam override and env variables --- hosts/default/home.nix | 7 +++++++ modules/games/steam.nix | 17 ++++++++++++++++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/hosts/default/home.nix b/hosts/default/home.nix index cc120a1..8795aa8 100644 --- a/hosts/default/home.nix +++ b/hosts/default/home.nix @@ -105,6 +105,13 @@ home.sessionVariables = { EDITOR = "nvim"; TERM = "kitty"; + GDK_BACKEND = "wayland,x11"; + QT_QPA_PLATFORM = "wayland;xcb"; + CLUTTER_BACKEND = "wayland"; + XDG_CURRENT_DESKTOP = "Hyprland"; + XDG_SESSION_TYPE = "wayland"; + XDG_SESSION_DESKTOP = "Hyprland"; + WLR_NO_HARDWARE_CURSORS = "1"; }; xdg = { diff --git a/modules/games/steam.nix b/modules/games/steam.nix index bbef86f..96cc8c5 100644 --- a/modules/games/steam.nix +++ b/modules/games/steam.nix @@ -1,4 +1,4 @@ -{ lib, config, ... }: +{ lib, config, pkgs, ... }: { options.modules.games.steam = { enable = lib.mkEnableOption "enable steam"; @@ -10,6 +10,21 @@ remotePlay.openFirewall = true; gamescopeSession.enable = true; dedicatedServer.openFirewall = true; + + package = pkgs.steam.override { + extraPkgs = pkgs: with pkgs; [ + xorg.libXcursor + xorg.libXi + xorg.libXinerama + xorg.libXScrnSaver + libpng + libpulseaudio + libvorbis + stdenv.cc.cc.lib + libkrb5 + keyutils + ]; + }; }; gamemode.enable = true;