starting mc config
This commit is contained in:
parent
f0c9cb0e23
commit
bbf6d19757
1 changed files with 18 additions and 0 deletions
18
modules/services/games/minecraft.nix
Normal file
18
modules/services/games/minecraft.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{ config, options, lib, pkgs, ... }:
|
||||
let
|
||||
inherit (lib.modules) mkIf;
|
||||
in
|
||||
{
|
||||
options.modules.services.games.minecraft = let
|
||||
inherit (lib.options) mkEnableOption;
|
||||
in {
|
||||
enable = mkEnableOption "Minecraft";
|
||||
};
|
||||
|
||||
config = mkIf config.modules.services.auth.enable {
|
||||
services.minecraft = {
|
||||
enable = true;
|
||||
eula = true;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue