{
  description = "Homelab running Minecraft";

  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/release-25.11";
    nix-minecraft.url = "github:Infinidoge/nix-minecraft";
  };

  outputs = inputs @ {
    self,
    nixpkgs,
    nix-minecraft,
    ...
  }: {
    nixosConfigurations."edi" = nixpkgs.lib.nixosSystem {
      system = "x86_64-linux";
      modules = [
        ./configuration.nix
        ./minecraft.nix
        nix-minecraft.nixosModules.minecraft-servers
        {
          nixpkgs.overlays = [inputs.nix-minecraft.overlay];
        }
      ];
    };
  };
}
