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

20
home/modules/gaming.nix Normal file
View file

@ -0,0 +1,20 @@
{
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 = [
pkgs.lutris
pkgs.openrct2
pkgs.prismlauncher
];
};
}