Fixed minecraft.

This commit is contained in:
root 2020-07-20 12:12:09 -05:00
parent 9f59ff30fe
commit 8217b5312d
3 changed files with 22 additions and 5 deletions

View File

@ -43,6 +43,10 @@ in {
};
config = mkIf cfg.enable {
environment.systemPackages = [
cfg.package
];
services.minecraft-server = {
enable = true;
package = cfg.package;

View File

@ -270,8 +270,8 @@ in {
"webmail.test.fudo.org" = {
title = "Fudo Webmail";
favicon = "/etc/nixos/static/fudo.org/favicon.ico";
mail-server = mail-hostname;
domain = "test.fudo.org";
mail-server = "mail.fudo.org";
domain = "fudo.org";
edit-mode = "Plain";
database = {
name = "webmail";
@ -284,8 +284,8 @@ in {
"webmail.test.selby.ca" = {
title = "Selby Webmail";
favicon = "/etc/nixos/static/selby.ca/favicon.ico";
mail-server = mail-hostname;
domain = "test.selby.ca";
mail-server = "mail.selby.ca";
domain = "selby.ca";
database = {
name = "webmail";
hostname = "localhost";
@ -621,7 +621,7 @@ in {
fudo.minecraft-server = {
enable = true;
package = pkgs.minecraft-server_1_15_2;
package = pkgs.minecraft-server_1_16_1;
data-dir = minecraft-data-dir;
world-name = "selbyland";
motd = "Welcome to the Selby Minecraft server.";

View File

@ -23,6 +23,19 @@
};
});
# DON'T LEAVE THE HASH--Nix will think the package hasn't changed
minecraft-server_1_16_1 = let
version = "1.16.1";
url = "https://launcher.mojang.com/v1/objects/a412fd69db1f81db3f511c1463fd304675244077/server.jar";
sha256 = "0nwkdig6yw4cnm2ld78z4j4xzhbm1rwv55vfxz0gzhsbf93xb0i7";
in (pkgs.minecraft-server.overrideAttrs (oldAttrs: rec {
name = "minecraft-server-${version}";
inherit version;
src = pkgs.fetchurl {
inherit url sha256;
};
}));
postgresql_11_gssapi = pkgs.postgresql_11.overrideAttrs (oldAttrs: rec {
configureFlags = oldAttrs.configureFlags ++ [ "--with-gssapi" ];
buildInputs = oldAttrs.buildInputs ++ [ pkgs.krb5 ];