prod toggle
This commit is contained in:
parent
dced4e3a58
commit
cabd26d232
1 changed files with 20 additions and 7 deletions
|
|
@ -1,11 +1,13 @@
|
||||||
{ inputs, lib, pkgs, ... }: let
|
{ inputs, lib, pkgs, ... }: let
|
||||||
|
production = true;
|
||||||
ram-allocation-mb = 12288;
|
ram-allocation-mb = 12288;
|
||||||
rcon-pass = "howdy";
|
rcon-pass = "howdy";
|
||||||
modpack = let
|
modpack = let
|
||||||
commit = "8523f89493ace13087eb68cd9fe3b5eb4f669440";
|
commit = "8523f89493ace13087eb68cd9fe3b5eb4f669440";
|
||||||
|
path = if production then "commit/${commit}" else "branch/main";
|
||||||
in pkgs.fetchPackwizModpack {
|
in pkgs.fetchPackwizModpack {
|
||||||
packHash = "sha256-xB9Oc/aneogSQ9r7L42vyVM6xwq+QkoTaXYNuUzeo6M=";
|
packHash = "sha256-xB9Oc/aneogSQ9r7L42vyVM6xwq+QkoTaXYNuUzeo6M=";
|
||||||
url = "https://git.satr14.my.id/satr14/server-modpack/raw/commit/${commit}/pack.toml";
|
url = "https://git.satr14.my.id/satr14/server-modpack/raw/${path}/pack.toml";
|
||||||
};
|
};
|
||||||
|
|
||||||
in {
|
in {
|
||||||
|
|
@ -32,14 +34,25 @@ in {
|
||||||
enable = true;
|
enable = true;
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
restart = "always";
|
restart = "always";
|
||||||
enableReload = false;
|
enableReload = production;
|
||||||
|
# extraReload = ''
|
||||||
|
# function rcon() {
|
||||||
|
# ${pkgs.rcon-cli}/bin/rcon-cli -p ${rcon-pass} $@
|
||||||
|
# }
|
||||||
|
|
||||||
|
# rcon "gamerule locator_bar false"
|
||||||
|
# rcon "gamerule mob_explosion_drop_decay false"
|
||||||
|
# rcon "gamerule reduced_debug_info false"
|
||||||
|
# rcon "gamerule global_sound_events false"
|
||||||
|
# '';
|
||||||
|
|
||||||
operators."satr14" = {
|
operators = lib.mkIf (!production) {
|
||||||
uuid = "54441a30-fe73-46e7-adca-c476bd4fc6d2";
|
"satr14" = {
|
||||||
bypassesPlayerLimit = true;
|
uuid = "54441a30-fe73-46e7-adca-c476bd4fc6d2";
|
||||||
level = 4;
|
bypassesPlayerLimit = true;
|
||||||
|
level = 4;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
# ^^ DISABLE ON PROD
|
|
||||||
|
|
||||||
serverProperties = {
|
serverProperties = {
|
||||||
# server-ip = "localhost";
|
# server-ip = "localhost";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue