steam override and env variables

This commit is contained in:
Noa Aarts 2024-05-11 10:56:44 +02:00
parent 6b54b0d739
commit e762116ed4
2 changed files with 23 additions and 1 deletions

View file

@ -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 = {

View file

@ -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;