Move minecraft srver into module

This commit is contained in:
Johannes Jöns 2023-07-26 21:00:43 +02:00
parent 91e34642d0
commit 58d0a8730c
3 changed files with 20 additions and 15 deletions

View file

@ -52,6 +52,7 @@
./modules/printing
#./modules/ssh
./modules/steam
./modules/minecraft-server
./modules/users/jopejoe1
nixos-hardware.nixosModules.common-cpu-intel
nixos-hardware.nixosModules.common-gpu-intel

View file

@ -0,0 +1,19 @@
{ pkgs, ... }:
{
services.minecraft-server = {
enable = true;
eula = true;
openFirewall = true;
declarative = true;
serverProperties = {
difficulty = 3;
enable-rcon = true;
"rcon.password" = "test";
motd = "\\u00A7cWake up to reality! Nothing ever goes as planned in this accursed world.";
spawn-protection = 0;
level-type = "minecraft:amplified";
level-name = "amplified_world";
};
};
}

View file

@ -32,21 +32,6 @@
programs.haguichi.enable = true;
#boot.kernelParams = [ "module_blacklist=i915" ];
services.minecraft-server = {
enable = true;
eula = true;
openFirewall = true;
declarative = true;
serverProperties = {
difficulty = 3;
enable-rcon = true;
"rcon.password" = "test";
motd = "\\u00A7cWake up to reality! Nothing ever goes as planned in this accursed world.";
spawn-protection = 0;
level-type = "minecraft:amplified";
level-name = "amplified_world";
};
};
fonts.packages = with pkgs; [
google-fonts