feat: enable lutris
This commit is contained in:
parent
8c0af2c239
commit
b69713e7fc
2 changed files with 15 additions and 0 deletions
|
|
@ -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
12
modules/games/lutris.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue