feat: enable lutris

This commit is contained in:
Noa Aarts 2024-08-09 16:44:53 +02:00
parent 8c0af2c239
commit b69713e7fc
2 changed files with 15 additions and 0 deletions

View file

@ -6,13 +6,16 @@ in
options.modules.games = {
enable = lib.mkEnableOption "enable gaming services";
minecraft.enable = lib.mkEnableOption "enable minecraft";
lutris.enable = lib.mkEnableOption "enable lutris";
};
imports = [
./minecraft.nix
./lutris.nix
];
config = lib.mkIf cfg.enable {
modules.games.minecraft.enable = true;
modules.games.lutris.enable = true;
};
}

12
modules/games/lutris.nix Normal file
View file

@ -0,0 +1,12 @@
{ lib, config, pkgs, ... }:
let
cfg = config.modules.games.lutris;
in
{
config = lib.mkIf cfg.enable {
home.packages = [
pkgs.lutris
pkgs.wineWowPackages.waylandFull
];
};
}