2023-09-23 11:29:46 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
2024-10-26 00:04:27 +02:00
|
|
|
}: {
|
|
|
|
config = {
|
2024-01-21 11:08:18 +01:00
|
|
|
hardware = {
|
|
|
|
opengl = {
|
|
|
|
driSupport = true;
|
|
|
|
driSupport32Bit = true;
|
|
|
|
extraPackages = with pkgs; [mangohud];
|
|
|
|
extraPackages32 = with pkgs; [mangohud];
|
|
|
|
};
|
|
|
|
|
|
|
|
steam-hardware.enable = true;
|
|
|
|
xpadneo.enable = true;
|
2023-09-23 11:53:52 +02:00
|
|
|
};
|
2023-09-23 11:29:46 +02:00
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
wineWowPackages.stagingFull
|
|
|
|
wineWowPackages.fonts
|
|
|
|
winetricks
|
2023-09-23 11:53:52 +02:00
|
|
|
dxvk
|
|
|
|
mangohud
|
|
|
|
vulkan-tools
|
2023-10-08 12:29:20 +02:00
|
|
|
glxinfo
|
2024-02-05 22:44:35 +01:00
|
|
|
lutris
|
2023-09-23 11:29:46 +02:00
|
|
|
];
|
2023-09-24 13:04:45 +02:00
|
|
|
|
|
|
|
programs = {
|
2023-09-23 11:53:52 +02:00
|
|
|
xwayland.enable = true;
|
2023-09-24 13:04:45 +02:00
|
|
|
steam = {
|
|
|
|
enable = true;
|
2023-09-23 11:53:52 +02:00
|
|
|
remotePlay.openFirewall = true;
|
|
|
|
dedicatedServer.openFirewall = true;
|
2024-10-27 10:42:23 +01:00
|
|
|
localNetworkGameTransfers.openFirewall = true;
|
|
|
|
gamescopeSession.enable = true;
|
2023-09-24 13:04:45 +02:00
|
|
|
};
|
2024-05-02 13:02:12 +02:00
|
|
|
gamemode.enable = true;
|
2023-09-24 13:04:45 +02:00
|
|
|
};
|
2023-10-02 18:14:05 +02:00
|
|
|
|
2024-10-27 10:42:23 +01:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2023-10-08 21:34:45 +02:00
|
|
|
|
2024-10-27 10:42:23 +01:00
|
|
|
allowedUnfreePackages = [
|
2023-10-02 18:14:05 +02:00
|
|
|
"steam"
|
|
|
|
"steam-original"
|
|
|
|
"steam-run"
|
|
|
|
];
|
2023-09-23 11:29:46 +02:00
|
|
|
};
|
|
|
|
}
|