nixvimConfig/modules/nixOS/bundles/gaming.nix

26 lines
704 B
Nix
Raw Normal View History

2024-08-27 17:56:04 +02:00
{config, pkgs, lib, ...}:let
2024-07-13 11:38:17 +02:00
mainUser = config.myNixOS.sharedSettings.mainUser;
2024-08-27 17:56:04 +02:00
localCfg = config.myNixOS.bundles.gaming;
2024-07-13 11:38:17 +02:00
in {
2024-08-27 17:56:04 +02:00
options = {
myNixOS.bundles.gaming.remotePlay = lib.mkEnableOption {
default = true;
};
};
2024-07-13 11:38:17 +02:00
programs.steam = {
enable = true;
gamescopeSession.enable = true;
2024-08-27 17:56:04 +02:00
remotePlay.openFirewall = localCfg.remotePlay;
localNetworkGameTransfers.openFirewall = localCfg.remotePlay;
2024-07-13 11:38:17 +02:00
};
programs.gamemode.enable = true;
2024-08-27 17:56:04 +02:00
hardware.steam-hardware.enable = true;
2024-07-13 11:38:17 +02:00
environment.systemPackages = with pkgs; [protonup];
environment.sessionVariables = {
STEAM_EXTRA_COMPAT_TOOLS_PATHS = "/home/${mainUser}/.steam/root/compatibilitytools.d";
};
}