minecraft

This commit is contained in:
Adrian Gunnar Lauterer 2024-04-28 14:42:49 +02:00
parent 1427322ab7
commit 61ad99783d
4 changed files with 44 additions and 11 deletions

View File

@ -32,14 +32,23 @@
#basicAuthFile = config.sops.secrets."nginx/defaultpass".path; #basicAuthFile = config.sops.secrets."nginx/defaultpass".path;
}; };
virtualHosts."jellyfin.lauterer.it" = { virtualHosts."jellyfin.lauterer.it" = {
forceSSL = true; forceSSL = true;
useACMEHost = config.networking.domain; useACMEHost = config.networking.domain;
locations."/" = { locations."/" = {
proxyWebsockets = true; proxyWebsockets = true;
proxyPass = "http://100.84.215.84:8096"; proxyPass = "http://100.84.215.84:8096";
};
};
virtualHosts."minecraft.256.no" = {
forceSSL = true;
useACMEHost = config.networking.domain;
locations."/" = {
proxyWebsockets = true;
proxyPass = "http://100.84.215.84:25500";
};
#basicAuthFile = config.sops.secrets."nginx/defaultpass".path;
}; };
#basicAuthFile = config.sops.secrets."nginx/defaultpass".path; };
}; }
};
}

View File

@ -19,6 +19,7 @@
../../services/smb.nix ../../services/smb.nix
../../services/torrent.nix ../../services/torrent.nix
../../services/mc.nix
#../../services/stableDiffusion.nix #../../services/stableDiffusion.nix
#../../services/freshrrs.nix #../../services/freshrrs.nix
]; ];

View File

@ -4,7 +4,7 @@
pkgs.freshrss pkgs.freshrss
]; ];
services.freshrss.enable = true; services.freshrss.enable = true;
services.freshrss.baseUrl = "http://127.0.0.1"; services.freshrss.baseUrl = "http://0.0.0.1";
services.freshrss.passwordFile = config.sops.secrets."freshrss".path; #"/run/secrets/freshrss"; services.freshrss.passwordFile = config.sops.secrets."freshrss".path; #"/run/secrets/freshrss";
} }

23
services/mc.nix Normal file
View File

@ -0,0 +1,23 @@
{ config, pkgs, lib, ... }:
{
environment.systemPackages = [
pkgs.ollama
];
services.minecraft-server = {
enable = true;
eula = true;
jvmOpts = "-Xms4092M -Xmx4092M -XX:+UseG1GC -XX:+CMSIncrementalPacing -XX:+CMSClassUnloadingEnabled -XX:ParallelGCThreads=2 -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10";
serverProperties = {
server-port = 25500;
difficulty = 3;
gamemode = 1;
max-players = 8;
motd = "Adrian Minecraft server!";
};
openFirewall = true;
};
}