From 349156c6364bc4a6ac3eecd423e24c50ae2f5b29 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Tue, 7 Jan 2025 18:55:40 +0400 Subject: [PATCH] heheheheheehehehe --- hosts/sakoserver/configuration.nix | 1 + modules/server/game/minecraft/default.nix | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/hosts/sakoserver/configuration.nix b/hosts/sakoserver/configuration.nix index e0f0a851..6390aa85 100644 --- a/hosts/sakoserver/configuration.nix +++ b/hosts/sakoserver/configuration.nix @@ -105,6 +105,7 @@ }; }; fedi = { akkoma.enable = true; }; + game = { minecraft.enable = true; }; media = { qbittorrent = { enable = true; diff --git a/modules/server/game/minecraft/default.nix b/modules/server/game/minecraft/default.nix index d805f367..d4baf823 100644 --- a/modules/server/game/minecraft/default.nix +++ b/modules/server/game/minecraft/default.nix @@ -6,17 +6,30 @@ in { config = mkIf cfg.enable { imports = [ inputs.nix-minecraft.nixosModules.minecraft-server ]; - nixpkgs.overlays = [ inputs.nix-minecraft.overlay ]; + nixpkgs = { + overlays = [ inputs.nix-minecraft.overlay ]; + config.allowUnfreePredicate = pkg: + builtins.elem (lib.getName pkgs) [ "minecraft-server" ]; + }; services = { minecraft-servers.servers.wires = let modpack = pkgs.fetchPackwizModpack { url = ./sakopack; }; in { enable = true; + # HAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHHAAHAHHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAH + eula = true; + openFirewall = true; package = pkgs.fabrticServers.fabric-1_24_4.override { loaderVersion = "0.16.9"; }; whielist = { Sakoooo = "6b05caca-3d78-4597-aba5-d0f816f94024"; }; + serverProperties = { + white-list = true; + difficulty = "normal"; + server-port = 25568; + gamemode = "survival"; + }; symlinks = { "mods" = "${modpack}/mods"; }; # files = { # "config" = "${modpack}/config";