This commit is contained in:
= 2024-06-15 01:31:56 +01:00
parent 75faf815b9
commit 853755bce0
2 changed files with 62 additions and 47 deletions

View File

@ -0,0 +1,61 @@
{ pkgs, lib, ... }:
{
# Gaming
hardware.xone.enable = true;
environment.systemPackages = with pkgs; [
#Xbox controller
linuxKernel.packages.linux_zen.xone
# Steam
mangohud
gamemode
gamescope
# WINE
wine
winetricks
protontricks
vulkan-tools
# Lutris
lutris
# Extra dependencies
gnutls
openldap
libgpgerror
freetype
sqlite
libxml2
xml2
SDL2
];
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
# Add additional package names here
"steam"
"steam-original"
"steam-run"
];
programs.steam = {
enable = true;
gamescopeSession.enable = true;
};
programs.gamemode.enable = true;
programs.gamescope.enable = true;
nixpkgs.config.packageOverrides = pkgs: {
steam = pkgs.steam.override {
extraPkgs = pkgs: with pkgs; [
pango
libthai
harfbuzz
gamemode
];
};
};
}

View File

@ -27,6 +27,7 @@ in
# Import optional options
../common/optional/openssh.nix
../common/optional/persistence.nix
../common/optional/gaming.nix
];
@ -45,61 +46,14 @@ in
enableIPv6 = false;
};
# Gaming
hardware.xone.enable = true;
environment.systemPackages = with pkgs; [
#Xbox controller
linuxKernel.packages.linux_zen.xone
# Steam
mangohud
gamemode
gamescope
# WINE
wine
winetricks
protontricks
vulkan-tools
# Extra dependencies
# https://github.com/lutris/docs/
gnutls
openldap
libgpgerror
freetype
sqlite
libxml2
xml2
SDL2
];
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
# Add additional package names here
"nvidia-x11"
"nvidia-settings"
"nvidia-persistenced"
"steam"
"steam-original"
"steam-run"
];
programs.steam.enable = true;
programs.gamemode.enable = true;
programs.gamescope.enable = true;
programs.steam.gamescopeSession.enable = true;
nixpkgs.config.packageOverrides = pkgs: {
steam = pkgs.steam.override {
extraPkgs = pkgs: with pkgs; [
pango
libthai
harfbuzz
gamemode
];
};
};
services.displayManager.defaultSession = "cinnamon";
services.libinput.enable = true;