add minecraft

This commit is contained in:
iofq 2024-01-03 22:50:55 -06:00
parent b1877c567b
commit d34374cd3d
3 changed files with 22 additions and 1 deletions

View file

@ -238,7 +238,7 @@
outputs = [
{
criteria = "eDP-1";
status = "disable";
status = "enable";
position = "0,1080";
}
{

View file

@ -1,6 +1,7 @@
{ inputs, pkgs, system, ... }: {
imports = [
./hardware-configuration.nix
./minecraft.nix
];
environment.systemPackages = with pkgs; [
nfs-utils

View file

@ -0,0 +1,20 @@
{ pkgs, ... }: {
services.minecraft-server = {
enable = true;
eula = true;
openFirewall = true;
declarative = true;
package = "${pkgs.minecraft-server}";
serverProperties = {
white-list = true;
server-port = 25565;
gamemode = "survival";
motd = "yooooooooooo";
};
whitelist = {
cjriddz = "cf36e5f7-6e7f-490a-ba76-65016338e7b4";
k359 = "a5ccc07c-144d-4dd0-b07c-48c4d5302b58";
};
};
}