mirror of
https://github.com/kaesaecracker/nixos-configuration.git
synced 2025-01-18 02:20:14 +01:00
81 lines
1.5 KiB
Nix
81 lines
1.5 KiB
Nix
{ config, pkgs, ... }:
|
|
{
|
|
config = {
|
|
hardware = {
|
|
graphics = {
|
|
enable32Bit = true;
|
|
extraPackages = with pkgs; [ mangohud ];
|
|
extraPackages32 = with pkgs; [ mangohud ];
|
|
};
|
|
|
|
steam-hardware.enable = true;
|
|
xpadneo.enable = true;
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
wineWowPackages.stagingFull
|
|
wineWowPackages.fonts
|
|
winetricks
|
|
dxvk
|
|
mangohud
|
|
vulkan-tools
|
|
glxinfo
|
|
lutris
|
|
];
|
|
|
|
programs = {
|
|
xwayland.enable = true;
|
|
steam = {
|
|
enable = true;
|
|
remotePlay.openFirewall = true;
|
|
dedicatedServer.openFirewall = true;
|
|
localNetworkGameTransfers.openFirewall = true;
|
|
gamescopeSession.enable = true;
|
|
};
|
|
gamemode.enable = true;
|
|
};
|
|
|
|
networking.firewall = {
|
|
allowedUDPPorts = [
|
|
# Factorio
|
|
34197
|
|
|
|
# steam network transfer
|
|
3478
|
|
];
|
|
|
|
allowedTCPPorts = [
|
|
# steam network transfer
|
|
24070
|
|
];
|
|
|
|
allowedTCPPortRanges = [
|
|
# steam network transfer
|
|
{
|
|
from = 27015;
|
|
to = 27050;
|
|
}
|
|
];
|
|
|
|
allowedUDPPortRanges = [
|
|
# steam network transfer
|
|
{
|
|
from = 4379;
|
|
to = 4380;
|
|
}
|
|
{
|
|
from = 27000;
|
|
to = 27100;
|
|
}
|
|
];
|
|
};
|
|
|
|
allowedUnfreePackages = [
|
|
"steam"
|
|
"steam-original"
|
|
"steam-run"
|
|
"steam-unwrapped"
|
|
];
|
|
};
|
|
}
|