Files
nix/hosts/common/user/configs/gui/gaming/default.nix
Nikolaos Karaolidis b81d4231a0 Add steam
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
2024-08-27 23:10:10 +03:00

38 lines
733 B
Nix

{
user ? throw "user argument is required",
home ? throw "home argument is required",
}:
{ pkgs, ... }:
{
environment.persistence."/persist" = {
"${home}/.steam" = { };
"${home}/.local/share/Steam" = { };
};
programs = {
steam = {
enable = true;
localNetworkGameTransfers.openFirewall = true;
extest.enable = true;
protontricks.enable = true;
};
gamescope = {
enable = true;
args = [
"--rt"
"-f"
];
};
gamemode.enable = true;
};
home-manager.users.${user} = {
home = {
packages = with pkgs; [ protonup ];
sessionVariables.STEAM_EXTRA_COMPAT_TOOLS_PATHS = "${home}/.steam/root/compatibilitytools.d";
};
};
}