feat: update steam config
This commit is contained in:
parent
82181a8d8b
commit
8bf3bbebd0
13
hardware/steam.nix
Normal file
13
hardware/steam.nix
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
hardware.opengl = {
|
||||||
|
# this fixes the "glXChooseVisual failed" bug, context: https://github.com/NixOS/nixpkgs/issues/47932
|
||||||
|
enable = true;
|
||||||
|
driSupport = true;
|
||||||
|
driSupport32Bit = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
# optionally enable 32bit pulseaudio support if pulseaudio is enabled
|
||||||
|
hardware.pulseaudio.support32Bit = config.hardware.pulseaudio.enable;
|
||||||
|
}
|
|
@ -4,6 +4,7 @@
|
||||||
imports = [
|
imports = [
|
||||||
./hardware/base.nix
|
./hardware/base.nix
|
||||||
./hardware/gpu-nvidia.nix
|
./hardware/gpu-nvidia.nix
|
||||||
|
./hardware/steam.nix
|
||||||
./hardware/ledger.nix
|
./hardware/ledger.nix
|
||||||
./system
|
./system
|
||||||
./desktop
|
./desktop
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
./browsers
|
./browsers
|
||||||
./planck.nix
|
./planck.nix
|
||||||
./ausweisapp.nix
|
./ausweisapp.nix
|
||||||
|
./steam.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
services.gammastep = {
|
services.gammastep = {
|
||||||
|
@ -74,7 +75,6 @@
|
||||||
anki
|
anki
|
||||||
|
|
||||||
# gaming
|
# gaming
|
||||||
steam
|
|
||||||
lutris
|
lutris
|
||||||
|
|
||||||
# privacy
|
# privacy
|
||||||
|
|
12
home/steam.nix
Normal file
12
home/steam.nix
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
{ config, pkgs, nixosConfig, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
steam = pkgs.steam.override {
|
||||||
|
extraLibraries = pkgs:
|
||||||
|
with nixosConfig.hardware.opengl;
|
||||||
|
if pkgs.hostPlatform.is64bit then
|
||||||
|
[ package ] ++ extraPackages
|
||||||
|
else
|
||||||
|
[ package32 ] ++ extraPackages32;
|
||||||
|
};
|
||||||
|
in { home.packages = [ steam steam.run ]; }
|
Loading…
Reference in a new issue