16 lines
573 B
Nix
16 lines
573 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
|
# Fetch nix-minecraft repository without using flakes
|
|
nix-minecraft-src = builtins.fetchTarball {
|
|
url = "https://github.com/Infinidoge/nix-minecraft/archive/master.tar.gz";
|
|
sha256 = "069asc38ja70k1gkrp51ykbzc3zx7jfw20lw37wdlf9nmyvqxhq0";
|
|
};
|
|
in
|
|
{
|
|
# Import the actual minecraft-servers NixOS module from nix-minecraft
|
|
imports = [ "${nix-minecraft-src}/modules/default.nix" ];
|
|
|
|
# Apply the overlay to pkgs so minecraftServers packages are available
|
|
nixpkgs.overlays = [ (import "${nix-minecraft-src}/overlay.nix") ];
|
|
}
|