Skip to content

Commit

Permalink
gpu and games update
Browse files Browse the repository at this point in the history
Signed-off-by: Bendik Dyrli <[email protected]>
  • Loading branch information
skandix committed Aug 26, 2024
1 parent 8c742e7 commit 0b2f8b9
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 14 deletions.
6 changes: 5 additions & 1 deletion common/amdgpu.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{ config, ... }:
{ config, pkgs, ... }:

{
boot.initrd.kernelModules = [ "amdgpu" ];
services.xserver.videoDrivers = [ "amdgpu" ];
environment.systemPackages = with pkgs; [
rocm-opencl-icd
rocm-opencl-runtime
];
}
20 changes: 10 additions & 10 deletions common/games.nix
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
{ config, pkgs, ... }:
{ config, pkgs, unstable, ... }:

{
# ST2EAM
nixpkgs.config.allowUnfree = true;
hardware.opengl = {
enable = true;
driSupport32Bit = true;
driSupport = true;
#extraPackages = with pkgs.pkgsi686Linux; [ libva ];
extraPackages = with pkgs; [ rocm-opencl-icd rocm-opencl-runtime ];
};
hardware.pulseaudio.support32Bit = true;
hardware.steam-hardware.enable = true;
programs.steam.enable = true;
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
};

# OTHER
environment.systemPackages = with pkgs; [
lutris
#bottles
winetricks
instawow
unstable.lutris
unstable.winetricks
wine-staging
gamemode
mangohud
r2modman
unstable.protontricks
];
}
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0b2f8b9

Please sign in to comment.