feat: adding the minecraft server configuration
This commit is contained in:
parent
f4628c0b47
commit
f19eca3df6
7 changed files with 116 additions and 3 deletions
21
modules/games/global.nix
Normal file
21
modules/games/global.nix
Normal 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
15
modules/games/lutris.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue