Nixerus/configurations/profile/os/games/steam.nix

90 lines
2.1 KiB
Nix
Raw Normal View History

2023-05-30 17:27:15 +02:00
{ config, pkgs, lib, materusPkgs, inputs, ... }:
let
2023-05-30 17:27:15 +02:00
steamPkg = pkgs.steam.override {
extraPkgs = pkgs: [
2023-06-08 18:24:48 +02:00
config.materus.profile.packages.firefox
pkgs.nss_latest
pkgs.libstrangle
pkgs.libkrb5
pkgs.keyutils
pkgs.libGL
pkgs.libglvnd
pkgs.gamescope
pkgs.steamPackages.steam
pkgs.libxcrypt
pkgs.gnutls
pkgs.xorg.libXcursor
pkgs.xorg.libXi
pkgs.xorg.libXinerama
pkgs.xorg.libXScrnSaver
2023-05-30 17:27:15 +02:00
pkgs.xorg.xinput
pkgs.libinput
pkgs.openvdb
pkgs.tbb_2021_8
pkgs.gtk4
pkgs.gtk3
pkgs.glib
pkgs.gsettings-desktop-schemas
pkgs.fuse
2023-05-30 17:27:15 +02:00
pkgs.libsForQt5.breeze-qt5
pkgs.libsForQt5.breeze-gtk
2023-06-03 13:15:01 +02:00
pkgs.samba4Full
pkgs.tdb
2023-06-10 00:22:32 +02:00
config.materus.profile.packages.firefox
] ++ config.materus.profile.packages.list.fonts;
extraLibraries = pkgs: [
pkgs.libkrb5
pkgs.keyutils
pkgs.ncurses6
2023-05-30 17:27:15 +02:00
pkgs.xorg.xinput
pkgs.libinput
pkgs.fontconfig
pkgs.libxcrypt
pkgs.gnutls
2023-06-03 13:15:01 +02:00
pkgs.samba
pkgs.tdb
] ++
(with config.hardware.opengl; if pkgs.hostPlatform.is64bit
then [ package ] ++ extraPackages
else [ package32 ] ++ extraPackages32);
2023-05-30 17:27:15 +02:00
extraEnv = {
XDG_DATA_DIRS = "/usr/share:\${XDG_DATA_DIRS}";
OBS_VKCAPTURE = "1";
2023-05-30 17:27:15 +02:00
};
};
cfg = config.materus.profile.steam;
in
{
options.materus.profile.steam.enable = materusPkgs.lib.mkBoolOpt false "Enable materus steam settings for OS";
options.materus.profile.steam.package = lib.mkOption {
type = lib.types.package;
default = steamPkg;
description = "Package used by steam";
};
config = lib.mkIf cfg.enable {
hardware.steam-hardware.enable = lib.mkDefault true;
programs.steam = {
enable = lib.mkDefault true;
dedicatedServer.openFirewall = lib.mkDefault true;
remotePlay.openFirewall = lib.mkDefault true;
};
environment.sessionVariables = rec {
STEAM_EXTRA_COMPAT_TOOLS_PATHS = lib.mkDefault "\${HOME}/.steam/root/compatibilitytools.d";
};
environment.systemPackages = [
steamPkg
steamPkg.run
];
};
}