add minecraft
This commit is contained in:
parent
b1877c567b
commit
d34374cd3d
3 changed files with 22 additions and 1 deletions
|
|
@ -238,7 +238,7 @@
|
||||||
outputs = [
|
outputs = [
|
||||||
{
|
{
|
||||||
criteria = "eDP-1";
|
criteria = "eDP-1";
|
||||||
status = "disable";
|
status = "enable";
|
||||||
position = "0,1080";
|
position = "0,1080";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
{ inputs, pkgs, system, ... }: {
|
{ inputs, pkgs, system, ... }: {
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
./minecraft.nix
|
||||||
];
|
];
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
nfs-utils
|
nfs-utils
|
||||||
|
|
|
||||||
20
nixos/racknerd/minecraft.nix
Normal file
20
nixos/racknerd/minecraft.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue