dotfiles/hosts/modules/steam.nix
Emile Clark-Boman 09c38f02ea added steam + other gaming support
specifically applied to laptop only currently
2025-05-06 16:41:52 +10:00

36 lines
591 B
Nix

{
pkgs,
lib,
...
}: {
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
"steam"
"steam-original"
"steam-unwrapped"
"steam-run"
];
programs = {
steam = {
enable = true;
gamescopeSession.enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
localNetworkGameTransfers.openFirewall = true;
};
gamemode.enable = true;
};
environment.systemPackages = with pkgs; [
steamcmd
mangohud
protonup-qt
lutris
bottles
heroic
];
}