ajout serveur Minecraft
This commit is contained in:
parent
1b16b40a79
commit
4ee31add54
@ -33,7 +33,7 @@ in
|
||||
];
|
||||
|
||||
nixpkgs.config.allowUnfree = false;
|
||||
nixpkgs.config.allowUnfreePredicate = (pkg: builtins.elem (builtins.parseDrvName pkg.name).name [ "factorio-headless" "perl5.28.1-slimserver" ]);
|
||||
nixpkgs.config.allowUnfreePredicate = (pkg: builtins.elem (builtins.parseDrvName pkg.name).name [ "factorio-headless" "perl5.28.1-slimserver" "minecraft-server" ]);
|
||||
|
||||
services.zfs = {
|
||||
autoSnapshot.enable = true;
|
||||
|
@ -419,6 +419,30 @@ in
|
||||
enable = true;
|
||||
maxMemory = 500;
|
||||
};
|
||||
|
||||
minecraft-server = {
|
||||
enable = true;
|
||||
jvmOpts = "-Xms512m -Xmx3072m";
|
||||
eula = true;
|
||||
declarative = true;
|
||||
openFirewall = true;
|
||||
whitelist = {
|
||||
nyanloutre = "db0669ea-e332-4ca3-8d50-f5d1458f5822";
|
||||
Hautension = "f05677f4-be5a-47df-ad77-21c739180aa2";
|
||||
LordDarkKiwi = "79290cfc-0b00-484f-9c94-ab0786402de6";
|
||||
Madahin = "f5f747e3-fac2-43e8-9b9b-a67dc2f368ff";
|
||||
Hopegcx = "4497f759-2210-48db-8764-307d33011442";
|
||||
wyrd68 = "127a3021-cdc1-419f-9010-4651df9ae3af";
|
||||
sparsyateloutre = "d2ff63c1-4e9f-4b21-9bfc-decce5d987b3";
|
||||
};
|
||||
serverProperties = {
|
||||
difficulty = 2;
|
||||
gamemode = 0;
|
||||
max-players = 50;
|
||||
motd = "Hi Mark !";
|
||||
white-list = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
systemd.services.dogetipbot-telegram = {
|
||||
|
Loading…
Reference in New Issue
Block a user