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 = {
|
options.modules.games = {
|
||||||
enable = lib.mkEnableOption "enable gaming services";
|
enable = lib.mkEnableOption "enable gaming services";
|
||||||
minecraft.enable = lib.mkEnableOption "enable minecraft";
|
minecraft.enable = lib.mkEnableOption "enable minecraft";
|
||||||
|
lutris.enable = lib.mkEnableOption "enable lutris";
|
||||||
};
|
};
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
./minecraft.nix
|
./minecraft.nix
|
||||||
|
./lutris.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
modules.games.minecraft.enable = true;
|
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