mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-31 14:43:11 +02:00
35 lines
1022 B
Nix
35 lines
1022 B
Nix
# https://github.com/fufexan/dotfiles/blob/483680e/system/programs/steam.nix
|
|
{pkgs, ...}: {
|
|
# https://wiki.archlinux.org/title/steam
|
|
# Games installed by Steam works fine on NixOS, no other configuration needed.
|
|
programs.steam = {
|
|
# Some location that should be persistent:
|
|
# ~/.local/share/Steam - The default Steam install location
|
|
# ~/.local/share/Steam/steamapps/common - The default Game install location
|
|
# ~/.steam/root - A symlink to ~/.local/share/Steam
|
|
# ~/.steam - Some Symlinks & user info
|
|
enable = true;
|
|
|
|
# fix gamescope inside steam
|
|
package = pkgs.steam.override {
|
|
extraPkgs = pkgs:
|
|
with pkgs; [
|
|
keyutils
|
|
libkrb5
|
|
libpng
|
|
libpulseaudio
|
|
libvorbis
|
|
stdenv.cc.cc.lib
|
|
xorg.libXcursor
|
|
xorg.libXi
|
|
xorg.libXinerama
|
|
xorg.libXScrnSaver
|
|
];
|
|
};
|
|
};
|
|
|
|
fonts.packages = with pkgs; [
|
|
wqy_zenhei # Need by steam for Chinese
|
|
];
|
|
}
|