Compare commits

...

3 Commits

Author SHA1 Message Date
= 7c994c2712 Merge branch 'master' of git.bitlab21.com:sam/nixos 2024-06-15 01:32:01 +01:00
= 853755bce0 lutris 2024-06-15 01:31:56 +01:00
Sam 75faf815b9 gamescope sparky 2024-06-10 17:06:45 +01:00
2 changed files with 62 additions and 44 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 # Import optional options
../common/optional/openssh.nix ../common/optional/openssh.nix
../common/optional/persistence.nix ../common/optional/persistence.nix
../common/optional/gaming.nix
]; ];
@ -45,58 +46,14 @@ in
enableIPv6 = false; enableIPv6 = false;
}; };
# Gaming
hardware.xone.enable = true;
environment.systemPackages = with pkgs; [
#Xbox controller
linuxKernel.packages.linux_zen.xone
# Steam
mangohud
gamemode
# 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: nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [ builtins.elem (lib.getName pkg) [
# Add additional package names here # Add additional package names here
"nvidia-x11" "nvidia-x11"
"nvidia-settings" "nvidia-settings"
"nvidia-persistenced" "nvidia-persistenced"
"steam"
"steam-original"
"steam-run"
]; ];
programs.steam.enable = true;
programs.gamemode.enable = true;
nixpkgs.config.packageOverrides = pkgs: {
steam = pkgs.steam.override {
extraPkgs = pkgs: with pkgs; [
pango
libthai
harfbuzz
gamemode
];
};
};
services.displayManager.defaultSession = "cinnamon"; services.displayManager.defaultSession = "cinnamon";
services.libinput.enable = true; services.libinput.enable = true;