-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
37 lines (34 loc) · 984 Bytes
/
Copy pathflake.nix
File metadata and controls
37 lines (34 loc) · 984 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
description = "Set up minecraft server with playit.gg tunnel";
inputs = {
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-25.11";
};
outputs =
{ self, ... }@inputs:
inputs.flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import inputs.nixpkgs { inherit system; };
fabric-server = pkgs.callPackage nix/fabric-server.nix {
minecraftVersion = "1.21.5";
loaderVersion = "0.19.2";
installerVersion = "1.1.1";
jarHash = "sha256-lW06ESsnn9GQAN/ZbtfWtXHXfKWiNTPMemQOBAK6I0g=";
};
playit-agent = pkgs.callPackage nix/playit-agent.nix { };
in
{
devShells.default = pkgs.mkShell {
packages = [
pkgs.coreutils
pkgs.openjdk25
playit-agent
];
shellHook = ''
export SERVER_JAR=${fabric-server}
'';
};
}
);
}