parent
f3d2dea7f5
commit
893143dc2e
18
flake.lock
generated
18
flake.lock
generated
@ -110,11 +110,11 @@
|
||||
"utils": "utils_2"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1659878744,
|
||||
"narHash": "sha256-81a9Mx5pDMBGN4WnVhcQVkW5mXNTZOt8DZOSI8bVKpU=",
|
||||
"lastModified": 1659978484,
|
||||
"narHash": "sha256-VkErPc8pXcuFQG7jkkaUOEMORe81oweRNlAYZJ2+aRI=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "f5e9879e74e6202e2dbb3628fad2d20eac0d8be4",
|
||||
"rev": "c1addfdad3825f75a66f8d73ec7d2f68c78ba6f8",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@ -125,11 +125,11 @@
|
||||
},
|
||||
"nixos-hardware": {
|
||||
"locked": {
|
||||
"lastModified": 1659356074,
|
||||
"narHash": "sha256-UwV6hZZEtchvtiTCCD/ODEv1226eam8kEgEyQb7xB0E=",
|
||||
"lastModified": 1660030916,
|
||||
"narHash": "sha256-KeVTmST6vAS85uUaSYlzv6OWhveawfIGhqX1SMq+L30=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixos-hardware",
|
||||
"rev": "ea3efc80f8ab83cb73aec39f4e76fe87afb15a08",
|
||||
"rev": "3975d5158f00accda15a11180b2c08654cfb2807",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@ -189,11 +189,11 @@
|
||||
},
|
||||
"nixpkgs_3": {
|
||||
"locked": {
|
||||
"lastModified": 1659868656,
|
||||
"narHash": "sha256-LINDS957FYzOb412t/Zha44LQqGniMpUIUz4Pi+fvSs=",
|
||||
"lastModified": 1660017629,
|
||||
"narHash": "sha256-Koz6/k7c6hx4qVz/bboxdR2QsBdkxjRWpNmsOWJtXZE=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "80fc83ad314fe701766ee66ac8286307d65b39e3",
|
||||
"rev": "9f15d6c3a74d2778c6e1af67947c95f100dc6fd2",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -11,6 +11,7 @@
|
||||
../../modules/gitea
|
||||
../../modules/home-assistant
|
||||
../../modules/matrix
|
||||
../../modules/minecraft
|
||||
../../modules/pleroma
|
||||
../../modules/postgresql
|
||||
../../modules/sops
|
||||
|
23
modules/minecraft/default.nix
Normal file
23
modules/minecraft/default.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user