added minecraft server
This commit is contained in:
65
system-config/services/minecraft/default.nix
Normal file
65
system-config/services/minecraft/default.nix
Normal file
@@ -0,0 +1,65 @@
|
||||
{ config, lib, pkgs, inputs, ... }: {
|
||||
|
||||
options.sysconfig.opts.minecraft.enable = lib.options.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
};
|
||||
|
||||
imports = [
|
||||
inputs.nix-minecraft.nixosModules.minecraft-servers
|
||||
];
|
||||
|
||||
config = lib.mkIf config.sysconfig.opts.minecraft.enable {
|
||||
|
||||
nixpkgs.overlays = [ inputs.nix-minecraft.overlay ];
|
||||
|
||||
services.minecraft-servers = {
|
||||
|
||||
enable = true;
|
||||
eula = true;
|
||||
openFirewall = true;
|
||||
dataDir = "/var/lib/mcservers";
|
||||
|
||||
servers = {
|
||||
|
||||
/*vanilla = {
|
||||
enable = true;
|
||||
package = pkgs.fabricServers.fabric;
|
||||
serverProperties = {
|
||||
server-port = 25566;
|
||||
gamemode = "survival";
|
||||
level-seed = "betterseed";
|
||||
whitelist = true;
|
||||
};
|
||||
whitelist = {
|
||||
"MeasureTwice66" = "a4032062-293d-484d-a790-9f52475836bb";
|
||||
"651sonic" = "936a3fb0-4548-4557-975b-7794e97a3afc";
|
||||
"Griffin12_" = "6a1f56d9-f712-4723-a031-e5437a389bb3";
|
||||
};
|
||||
autoStart = true;
|
||||
};*/
|
||||
|
||||
modded = {
|
||||
enable = true;
|
||||
package = pkgs.fabricServers.fabric-1_21_1;
|
||||
serverProperties = {
|
||||
server-port = 25565;
|
||||
gamemode = "survival";
|
||||
level-seed = "betterseed";
|
||||
white-list = true;
|
||||
motd = "Didn't see that coming huh?";
|
||||
};
|
||||
whitelist = {
|
||||
"MeasureTwice66" = "a4032062-293d-484d-a790-9f52475836bb";
|
||||
"651sonic" = "936a3fb0-4548-4557-975b-7794e97a3afc";
|
||||
"Griffin12_" = "6a1f56d9-f712-4723-a031-e5437a389bb3";
|
||||
};
|
||||
autoStart = true;
|
||||
symlinks = {
|
||||
mods = ./mods;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
system-config/services/minecraft/mods/Nullscape_1.21_v1.2.7.jar
Normal file
BIN
system-config/services/minecraft/mods/Nullscape_1.21_v1.2.7.jar
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
system-config/services/minecraft/mods/bclib-21.0.13.jar
Normal file
BIN
system-config/services/minecraft/mods/bclib-21.0.13.jar
Normal file
Binary file not shown.
BIN
system-config/services/minecraft/mods/better-end-21.0.11.jar
Normal file
BIN
system-config/services/minecraft/mods/better-end-21.0.11.jar
Normal file
Binary file not shown.
BIN
system-config/services/minecraft/mods/better-nether-21.0.11.jar
Normal file
BIN
system-config/services/minecraft/mods/better-nether-21.0.11.jar
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
system-config/services/minecraft/mods/collective-1.21.1-7.84.jar
Normal file
BIN
system-config/services/minecraft/mods/collective-1.21.1-7.84.jar
Normal file
Binary file not shown.
Binary file not shown.
BIN
system-config/services/minecraft/mods/doubledoors-1.21.1-5.9.jar
Normal file
BIN
system-config/services/minecraft/mods/doubledoors-1.21.1-5.9.jar
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
system-config/services/minecraft/mods/guicompass-1.21.1-4.8.jar
Normal file
BIN
system-config/services/minecraft/mods/guicompass-1.21.1-4.8.jar
Normal file
Binary file not shown.
BIN
system-config/services/minecraft/mods/itemalchemy-1.0.2.jar
Normal file
BIN
system-config/services/minecraft/mods/itemalchemy-1.0.2.jar
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
system-config/services/minecraft/mods/letmedespawn-1.3.1.jar
Normal file
BIN
system-config/services/minecraft/mods/letmedespawn-1.3.1.jar
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
system-config/services/minecraft/mods/owo-lib-0.12.14+1.21.jar
Normal file
BIN
system-config/services/minecraft/mods/owo-lib-0.12.14+1.21.jar
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
system-config/services/minecraft/mods/worldweaver-21.0.13.jar
Normal file
BIN
system-config/services/minecraft/mods/worldweaver-21.0.13.jar
Normal file
Binary file not shown.
Reference in New Issue
Block a user