add minecraft server

Closes #10
This commit is contained in:
James Walker 2022-08-09 21:35:47 -04:00
parent f3d2dea7f5
commit 893143dc2e
Signed by: walkah
GPG Key ID: 3C127179D6086E93
3 changed files with 33 additions and 9 deletions

View File

@ -110,11 +110,11 @@
"utils": "utils_2" "utils": "utils_2"
}, },
"locked": { "locked": {
"lastModified": 1659878744, "lastModified": 1659978484,
"narHash": "sha256-81a9Mx5pDMBGN4WnVhcQVkW5mXNTZOt8DZOSI8bVKpU=", "narHash": "sha256-VkErPc8pXcuFQG7jkkaUOEMORe81oweRNlAYZJ2+aRI=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "f5e9879e74e6202e2dbb3628fad2d20eac0d8be4", "rev": "c1addfdad3825f75a66f8d73ec7d2f68c78ba6f8",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -125,11 +125,11 @@
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1659356074, "lastModified": 1660030916,
"narHash": "sha256-UwV6hZZEtchvtiTCCD/ODEv1226eam8kEgEyQb7xB0E=", "narHash": "sha256-KeVTmST6vAS85uUaSYlzv6OWhveawfIGhqX1SMq+L30=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "ea3efc80f8ab83cb73aec39f4e76fe87afb15a08", "rev": "3975d5158f00accda15a11180b2c08654cfb2807",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -189,11 +189,11 @@
}, },
"nixpkgs_3": { "nixpkgs_3": {
"locked": { "locked": {
"lastModified": 1659868656, "lastModified": 1660017629,
"narHash": "sha256-LINDS957FYzOb412t/Zha44LQqGniMpUIUz4Pi+fvSs=", "narHash": "sha256-Koz6/k7c6hx4qVz/bboxdR2QsBdkxjRWpNmsOWJtXZE=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "80fc83ad314fe701766ee66ac8286307d65b39e3", "rev": "9f15d6c3a74d2778c6e1af67947c95f100dc6fd2",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -11,6 +11,7 @@
../../modules/gitea ../../modules/gitea
../../modules/home-assistant ../../modules/home-assistant
../../modules/matrix ../../modules/matrix
../../modules/minecraft
../../modules/pleroma ../../modules/pleroma
../../modules/postgresql ../../modules/postgresql
../../modules/sops ../../modules/sops

View File

@ -0,0 +1,23 @@
{ pkgs, ... }: {
services.minecraft-server = {
enable = true;
eula = true;
declarative = true;
# see here for more info: https://minecraft.gamepedia.com/Server.properties#server.properties
serverProperties = {
server-port = 25565;
gamemode = "survival";
motd = "Vanilla Survival";
max-players = 20;
white-list = true;
};
# Grab UUIDs from https://mcuuid.net/
whitelist = {
walkahj = "7209094c-b3ef-4c89-b8cd-0aef7c1d57a6";
puffpuffpassion = "72e0d040-fa54-47e8-a6e7-162fdaa0cac5";
};
};
}