modularize steam

This commit is contained in:
Fabian Montero 2025-01-27 19:52:25 -06:00
parent 9f0e9811e3
commit cbda46edd5
Signed by untrusted user: fabian
GPG key ID: 1FFAC35E1798174F
6 changed files with 34 additions and 15 deletions

View file

@ -1,25 +0,0 @@
{
pkgs,
lib,
config,
...
}:
with lib; let
cfg = config.local.apps.gaming;
in {
options.local.apps.gaming = {
enable = mkEnableOption "gaming apps";
};
config = mkIf cfg.enable {
home.packages = [
# Steam. todo: move to the steam module later
(pkgs.callPackage ./package.nix {})
pkgs.protonup
pkgs.winetricks
pkgs.protontricks
pkgs.lutris
pkgs.openrct2
pkgs.prismlauncher
];
};
}