Disable minecraft server
This commit is contained in:
parent
16ee59549e
commit
a13aabdcd8
|
@ -90,91 +90,91 @@
|
||||||
home-manager.users.nathan = import ./home.nix;
|
home-manager.users.nathan = import ./home.nix;
|
||||||
|
|
||||||
# Setup minecraft container
|
# Setup minecraft container
|
||||||
containers.minecraft = let
|
# containers.minecraft = let
|
||||||
b2AccountID = "00284106ead1ac40000000002";
|
# b2AccountID = "00284106ead1ac40000000002";
|
||||||
b2KeyFile = "${config.sops.secrets."friendpack-backblaze".path}";
|
# b2KeyFile = "${config.sops.secrets."friendpack-backblaze".path}";
|
||||||
b2Bucket = "ForwardProgressServerBackup";
|
# b2Bucket = "ForwardProgressServerBackup";
|
||||||
in {
|
# in {
|
||||||
config = { pkgs, lib, ... }@attrs:
|
# config = { pkgs, lib, ... }@attrs:
|
||||||
let
|
# let
|
||||||
# OpenJDK 17
|
# # OpenJDK 17
|
||||||
javaPackage = pkgs.jdk;
|
# javaPackage = pkgs.jdk;
|
||||||
in {
|
# in {
|
||||||
imports = [ inputs.quilt-server.nixosModules.default ];
|
# imports = [ inputs.quilt-server.nixosModules.default ];
|
||||||
###
|
# ###
|
||||||
## Container stuff
|
# ## Container stuff
|
||||||
###
|
# ###
|
||||||
# Let nix know this is a container
|
# # Let nix know this is a container
|
||||||
boot.isContainer = true;
|
# boot.isContainer = true;
|
||||||
# Set system state version
|
# # Set system state version
|
||||||
system.stateVersion = "22.05";
|
# system.stateVersion = "22.05";
|
||||||
# Setup networking
|
# # Setup networking
|
||||||
networking.useDHCP = false;
|
# networking.useDHCP = false;
|
||||||
# Allow minecraft out
|
# # Allow minecraft out
|
||||||
networking.firewall.allowedTCPPorts = [ 25565 ];
|
# networking.firewall.allowedTCPPorts = [ 25565 ];
|
||||||
|
|
||||||
###
|
# ###
|
||||||
## User
|
# ## User
|
||||||
###
|
# ###
|
||||||
users = {
|
# users = {
|
||||||
mutableUsers = false;
|
# mutableUsers = false;
|
||||||
# Enable us to not use a password, this is a container
|
# # Enable us to not use a password, this is a container
|
||||||
allowNoPasswordLogin = true;
|
# allowNoPasswordLogin = true;
|
||||||
};
|
# };
|
||||||
|
|
||||||
###
|
# ###
|
||||||
## Configure module
|
# ## Configure module
|
||||||
###
|
# ###
|
||||||
forward-progress = {
|
# forward-progress = {
|
||||||
services = {
|
# services = {
|
||||||
minecraft = {
|
# minecraft = {
|
||||||
enable = true;
|
# enable = true;
|
||||||
minecraft-version = "1.18.2";
|
# minecraft-version = "1.18.2";
|
||||||
quilt-version = "0.17.1-beta.6";
|
# quilt-version = "0.17.1-beta.6";
|
||||||
ram = 6144;
|
# ram = 6144;
|
||||||
properties = {
|
# properties = {
|
||||||
motd = "Nathan's Private Modded Minecraft";
|
# motd = "Nathan's Private Modded Minecraft";
|
||||||
white-list = true;
|
# white-list = true;
|
||||||
enforce-whitelist = true;
|
# enforce-whitelist = true;
|
||||||
};
|
# };
|
||||||
packwiz-url = "https://pack.forward-progress.net/0.3/pack.toml";
|
# packwiz-url = "https://pack.forward-progress.net/0.3/pack.toml";
|
||||||
acceptEula = true;
|
# acceptEula = true;
|
||||||
};
|
# };
|
||||||
backup = {
|
# backup = {
|
||||||
enable = true;
|
# enable = true;
|
||||||
backblaze = {
|
# backblaze = {
|
||||||
enable = true;
|
# enable = true;
|
||||||
accountId = b2AccountID;
|
# accountId = b2AccountID;
|
||||||
keyFile = b2KeyFile;
|
# keyFile = b2KeyFile;
|
||||||
bucket = b2Bucket;
|
# bucket = b2Bucket;
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
autoStart = true;
|
# autoStart = true;
|
||||||
bindMounts = {
|
# bindMounts = {
|
||||||
"/var/minecraft" = {
|
# "/var/minecraft" = {
|
||||||
hostPath = "/var/minecraft";
|
# hostPath = "/var/minecraft";
|
||||||
isReadOnly = false;
|
# isReadOnly = false;
|
||||||
};
|
# };
|
||||||
"/run/secrets/friendpack-backblaze" = {
|
# "/run/secrets/friendpack-backblaze" = {
|
||||||
hostPath = "/run/secrets/friendpack-backblaze";
|
# hostPath = "/run/secrets/friendpack-backblaze";
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
forwardPorts = [
|
# forwardPorts = [
|
||||||
{
|
# {
|
||||||
containerPort = 25565;
|
# containerPort = 25565;
|
||||||
hostPort = 25565;
|
# hostPort = 25565;
|
||||||
protocol = "tcp";
|
# protocol = "tcp";
|
||||||
}
|
# }
|
||||||
{
|
# {
|
||||||
containerPort = 25565;
|
# containerPort = 25565;
|
||||||
hostPort = 25565;
|
# hostPort = 25565;
|
||||||
protocol = "udp";
|
# protocol = "udp";
|
||||||
}
|
# }
|
||||||
];
|
# ];
|
||||||
};
|
# }
|
||||||
|
|
||||||
# Setup vhost for pack website
|
# Setup vhost for pack website
|
||||||
services.nginx.virtualHosts."pack.forward-progress.net" = {
|
services.nginx.virtualHosts."pack.forward-progress.net" = {
|
||||||
|
|
Loading…
Reference in New Issue