fix
This commit is contained in:
parent
8adc14e69b
commit
5368db95ed
1 changed files with 9 additions and 9 deletions
|
|
@ -1,16 +1,16 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
# Fetch nix-minecraft repository without using flakes
|
||||
nix-minecraft-src = builtins.fetchTarball {
|
||||
nix-minecraft = import (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}/default.nix" ];
|
||||
imports = [
|
||||
nix-minecraft.nixosModules.minecraft-servers
|
||||
];
|
||||
|
||||
# Apply the overlay to pkgs so minecraftServers packages are available
|
||||
nixpkgs.overlays = [ (import "${nix-minecraft-src}/overlay.nix") ];
|
||||
nixpkgs.overlays = [
|
||||
nix-minecraft.overlay
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue