Compare commits
No commits in common. "ab2d1642665c2fbbc214dab8b113da2ef01c1b72" and "0da77d6559ccc96ab56aaf9adec3e1b01b8090ad" have entirely different histories.
ab2d164266
...
0da77d6559
@ -67,7 +67,6 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
startWhenNeeded = true;
|
startWhenNeeded = true;
|
||||||
settings.PasswordAuthentication = false;
|
settings.PasswordAuthentication = false;
|
||||||
settings.KbdInteractiveAuthentication = false;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
services.udev = {
|
services.udev = {
|
||||||
|
@ -66,7 +66,6 @@ rec {
|
|||||||
enable = true;
|
enable = true;
|
||||||
startWhenNeeded = true;
|
startWhenNeeded = true;
|
||||||
settings.PasswordAuthentication = false;
|
settings.PasswordAuthentication = false;
|
||||||
settings.KbdInteractiveAuthentication = false;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
services.udev = {
|
services.udev = {
|
||||||
|
@ -109,7 +109,7 @@
|
|||||||
|
|
||||||
firewall = {
|
firewall = {
|
||||||
enable = true;
|
enable = true;
|
||||||
allowedTCPPorts = [ 80 443 3001 25600 8080 ];
|
allowedTCPPorts = [ 80 443 3001 25600 ];
|
||||||
};
|
};
|
||||||
|
|
||||||
interfaces.enp9s0.ipv4.addresses = [ {
|
interfaces.enp9s0.ipv4.addresses = [ {
|
||||||
|
@ -13,11 +13,6 @@ let
|
|||||||
uuid = "6fa9251d-11a5-33ad-ada3-312f0632eab1";
|
uuid = "6fa9251d-11a5-33ad-ada3-312f0632eab1";
|
||||||
level = 3;
|
level = 3;
|
||||||
}
|
}
|
||||||
{
|
|
||||||
name = "DiAlteri";
|
|
||||||
uuid = "0a278f5c-7192-30c8-aa2f-af157c348009";
|
|
||||||
level = 3;
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
|
|
||||||
operators = lib.filter (player: player.level > 0) playerlist;
|
operators = lib.filter (player: player.level > 0) playerlist;
|
||||||
@ -130,23 +125,8 @@ let
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
stargate = stdenv.mkDerivation rec {
|
|
||||||
pname = "Stargate";
|
|
||||||
version = "0.11.5.6";
|
|
||||||
src = fetchurl {
|
|
||||||
url = "https://hangarcdn.papermc.io/plugins/Stargate/Stargate/versions/${version}/PAPER/Stargate-${version}.jar";
|
|
||||||
hash = "sha256-Ilz0z3juQ9c4/pUnHnvJO+PnJF1+vXBxW2pbERuEBo4=";
|
|
||||||
};
|
|
||||||
meta.homepage = "https://hangar.papermc.io/Stargate/Stargate";
|
|
||||||
phases = [ "installPhase" ];
|
|
||||||
installPhase = ''
|
|
||||||
mkdir -p $out/bin
|
|
||||||
cp $src $out/bin/${pname}.jar
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
plugins = [
|
plugins = [
|
||||||
passky grimAnticheat viaVersion directionHUD miniMOTD skinRestorer squaremap stargate
|
passky grimAnticheat viaVersion directionHUD miniMOTD skinRestorer squaremap
|
||||||
];
|
];
|
||||||
|
|
||||||
in {
|
in {
|
||||||
@ -166,14 +146,14 @@ in {
|
|||||||
online-mode = false;
|
online-mode = false;
|
||||||
enable-rcon = true;
|
enable-rcon = true;
|
||||||
"rcon.port" = 25600;
|
"rcon.port" = 25600;
|
||||||
white-list = false;
|
white-list = true;
|
||||||
};
|
};
|
||||||
rconPasswordFile = config.sops.secrets."papermc/rcon".path;
|
rconPasswordFile = config.sops.secrets."papermc/rcon".path;
|
||||||
whitelist = whitelist;
|
whitelist = whitelist;
|
||||||
ops = operators;
|
ops = operators;
|
||||||
extraPreStart = ''
|
extraPreStart = ''
|
||||||
mkdir -p ${builtins.concatStringsSep " " (map (v: "plugins/${v.pname}") plugins)}
|
mkdir -p ${builtins.concatStringsSep " " (map (v: "plugins/${v.pname}") plugins)}
|
||||||
'' + builtins.concatStringsSep "\n" (map (v: "ln -sf ${v.outPath}/bin/${v.pname}.jar plugins/") plugins)
|
'' + builtins.concatStringsSep "\n" (map (v: "ln -s ${v.outPath}/bin/${v.pname}.jar plugins/") plugins)
|
||||||
;
|
;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -182,5 +162,4 @@ in {
|
|||||||
useACMEHost = "elnafo.ru";
|
useACMEHost = "elnafo.ru";
|
||||||
locations."/".proxyPass = "http://127.0.0.1:8088";
|
locations."/".proxyPass = "http://127.0.0.1:8088";
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user