diff --git a/modules/home/desktop/games/default.nix b/modules/home/desktop/games/default.nix new file mode 100644 index 0000000..8e4bb22 --- /dev/null +++ b/modules/home/desktop/games/default.nix @@ -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"; + }; + }; + }; +}