fix: add minecraft pkg
This commit is contained in:
parent
10e6d08ca9
commit
314e452a11
2 changed files with 17 additions and 0 deletions
|
|
@ -5,6 +5,7 @@
|
|||
./forgejo.nix
|
||||
./node-exporter.nix
|
||||
./prometheus.nix
|
||||
./minecraft/module.nix
|
||||
./minecraft/servers/gtnh/default.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
16
services/minecraft/module.nix
Normal file
16
services/minecraft/module.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{ 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 = "1qi0vi1nqaxmkgvcq8xvcavyhcndmygqyhfkz9b7kfp52pq60xrl";
|
||||
};
|
||||
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") ];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue