feat: adding the minecraft server configuration

This commit is contained in:
Raphael 2025-02-24 19:45:52 +01:00
parent f4628c0b47
commit f19eca3df6
7 changed files with 116 additions and 3 deletions

21
modules/games/global.nix Normal file
View file

@ -0,0 +1,21 @@
{ config, pkgs, lib, ... }:
let
lutris = import ./lutris.nix {
inherit config pkgs lib;
};
cfg = config.games;
in
{
imports = [
lutris
];
options.games = {
lutris = lib.mkOption {
type = lib.types.bool;
default = false;
description = "Enable lutris";
};
};
}

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

@ -0,0 +1,15 @@
{ config, pkgs, lib, ... }:
let
cfg = config.games.lutris;
in
{
config = lib.mkIf cfg {
environment.systemPackages = with pkgs; [
wine-staging
lutris
dxvk
vkd3d
];
};
}