diff --git a/flake.nix b/flake.nix index 8f394c3..68055d4 100644 --- a/flake.nix +++ b/flake.nix @@ -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 diff --git a/modules/minecraft-server/default.nix b/modules/minecraft-server/default.nix new file mode 100644 index 0000000..24fb023 --- /dev/null +++ b/modules/minecraft-server/default.nix @@ -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"; + }; + }; +} diff --git a/systems/kami/default.nix b/systems/kami/default.nix index 76d22ed..defbc07 100644 --- a/systems/kami/default.nix +++ b/systems/kami/default.nix @@ -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