add proton ge

This commit is contained in:
Chris Kruining 2025-03-29 10:40:48 +01:00
parent 77b7828d5a
commit 4d95f45cb6
Signed by: chris
SSH key fingerprint: SHA256:nG82MUfuVdRVyCKKWqhY+pCrbz9nbX6uzUns4RKa1Pg

View file

@ -0,0 +1,20 @@
{ config, lib, pkgs, user, ... }: let
inherit (lib) mkEnableOption mkIf;
cfg = config.modules.${user}.desktop.games;
in
{
options.modules.${user}.desktop.games = {
enable = mkEnableOption "enable proton GE";
};
config = mkIf cfg.enable {
home-manager.users.${user} = {
home.packages = with pkgs; [ protonup ];
home.sessionVariables = {
STEAM_EXTRA_COMPAT_TOOLS_PATHS = "\${HOME}/.steam/root/compatibilitytools.d";
};
};
};
}