mochi/.archive/profiles/role-gaming.nix

40 lines
945 B
Nix
Raw Permalink Normal View History

{ lib, pkgs, ... }:
2024-06-20 13:03:44 -05:00
{
# Enable module for NVIDIA graphics
2024-06-21 19:34:22 -05:00
mySystem = {
hardware.nvidia.enable = true;
};
2024-06-20 13:03:44 -05:00
2024-06-21 12:55:52 -05:00
# set xserver videodrivers for NVIDIA gpu
2024-06-20 13:03:44 -05:00
services.xserver.videoDrivers = [ "nvidia" ];
2024-06-21 19:34:22 -05:00
# Install steam systemwide
programs.steam = {
enable = true;
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
};
# # Proton versions GUI and Wine
environment.systemPackages = with pkgs; [
protonup-qt
wineWowPackages.waylandFull
winetricks
];
# Disable Alsa
sound.enable = lib.mkDefault false;
hardware.pulseaudio.enable = lib.mkForce false;
2024-07-13 02:47:38 -05:00
# Realtime Kit
security.rtkit.enable = true;
# Enable pipewire
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
jack.enable = true;
};
2024-06-20 13:03:44 -05:00
}