refactor(minecraft): update to minix and remove unused
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
cc57e70de5
commit
8af4a53238
8 changed files with 10 additions and 132 deletions
|
@ -4,6 +4,8 @@
|
||||||
in {
|
in {
|
||||||
systemd.extraConfig = "DefaultLimitNOFILE=10240";
|
systemd.extraConfig = "DefaultLimitNOFILE=10240";
|
||||||
|
|
||||||
|
# TODO: make backups
|
||||||
|
|
||||||
# https://github.com/Krutonium/NewNix/blob/455aafc4caf553248ca228f844f021cecf494dc2/services/sevendaystodie.nix#L6
|
# https://github.com/Krutonium/NewNix/blob/455aafc4caf553248ca228f844f021cecf494dc2/services/sevendaystodie.nix#L6
|
||||||
systemd.services."7-days-to-die" = {
|
systemd.services."7-days-to-die" = {
|
||||||
wantedBy = ["multi-user.target"];
|
wantedBy = ["multi-user.target"];
|
||||||
|
|
|
@ -1,33 +1,28 @@
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
nms,
|
minix,
|
||||||
pkgs,
|
pkgs,
|
||||||
self,
|
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (config.vars) mainUser;
|
inherit (config.vars) mainUser;
|
||||||
in {
|
in {
|
||||||
imports = [nms.nixosModules.default];
|
imports = [minix.nixosModules.default];
|
||||||
|
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
self.packages.${pkgs.system}.curseforge-server-downloader
|
minix.packages.${pkgs.system}.curseforge-server-downloader
|
||||||
];
|
];
|
||||||
|
|
||||||
systemd.services.mc-steampunk.path = with pkgs; [curl];
|
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
borgbackup.configs.mc = {
|
borgbackup.configs.mc = {
|
||||||
paths = ["/var/lib/minecraft"];
|
paths = ["/var/lib/minix"];
|
||||||
startAt = "01/3:00";
|
startAt = "01/3:00";
|
||||||
};
|
};
|
||||||
|
|
||||||
modded-minecraft-servers = {
|
minix = {
|
||||||
eula = true;
|
eula = true;
|
||||||
user = mainUser;
|
user = mainUser;
|
||||||
|
|
||||||
instances = let
|
instances = let
|
||||||
jre17 = pkgs.temurin-bin-17;
|
|
||||||
jre18 = pkgs.temurin-bin-18;
|
|
||||||
jre21 = pkgs.temurin-bin-21;
|
jre21 = pkgs.temurin-bin-21;
|
||||||
|
|
||||||
defaults = {
|
defaults = {
|
||||||
|
@ -43,7 +38,6 @@ in {
|
||||||
jvmMaxAllocation = "10G";
|
jvmMaxAllocation = "10G";
|
||||||
jvmInitialAllocation = "2G";
|
jvmInitialAllocation = "2G";
|
||||||
jvmPackage = jre21;
|
jvmPackage = jre21;
|
||||||
jvmOpts = "";
|
|
||||||
|
|
||||||
serverConfig =
|
serverConfig =
|
||||||
{
|
{
|
||||||
|
@ -53,6 +47,7 @@ in {
|
||||||
extra-options = {
|
extra-options = {
|
||||||
difficulty = "hard";
|
difficulty = "hard";
|
||||||
enable-command-block = true;
|
enable-command-block = true;
|
||||||
|
enforce-white-list = true;
|
||||||
max-players = 10;
|
max-players = 10;
|
||||||
view-distance = 16;
|
view-distance = 16;
|
||||||
level-seed = "8764718009920";
|
level-seed = "8764718009920";
|
||||||
|
@ -68,7 +63,6 @@ in {
|
||||||
jvmMaxAllocation = "8G";
|
jvmMaxAllocation = "8G";
|
||||||
jvmInitialAllocation = "2G";
|
jvmInitialAllocation = "2G";
|
||||||
jvmPackage = jre21;
|
jvmPackage = jre21;
|
||||||
jvmOpts = "";
|
|
||||||
|
|
||||||
serverConfig =
|
serverConfig =
|
||||||
{
|
{
|
||||||
|
@ -86,100 +80,6 @@ in {
|
||||||
}
|
}
|
||||||
// defaults;
|
// defaults;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Modded https://www.curseforge.com/minecraft/modpacks/steam-punk
|
|
||||||
# curseforge-server-downloader --pack 643605 --version latest
|
|
||||||
steampunk = {
|
|
||||||
enable = false;
|
|
||||||
|
|
||||||
jvmMaxAllocation = "12G";
|
|
||||||
jvmInitialAllocation = "2G";
|
|
||||||
jvmPackage = jre18;
|
|
||||||
jvmOpts = "";
|
|
||||||
|
|
||||||
serverConfig =
|
|
||||||
{
|
|
||||||
server-port = 25569;
|
|
||||||
motd = "";
|
|
||||||
|
|
||||||
extra-options = {
|
|
||||||
allow-nether = true;
|
|
||||||
enable-command-block = true;
|
|
||||||
enable-status = true;
|
|
||||||
entity-broadcast-range-percentage = 100;
|
|
||||||
force-gamemode = false;
|
|
||||||
function-permission-level = 2;
|
|
||||||
gamemode = "survival";
|
|
||||||
generate-structures = true;
|
|
||||||
max-build-height = 256;
|
|
||||||
max-players = 8;
|
|
||||||
difficulty = "normal";
|
|
||||||
view-distance = 12;
|
|
||||||
simulation-distance = 10;
|
|
||||||
sync-chunk-writes = true;
|
|
||||||
use-native-transport = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
// defaults;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Modded https://www.curseforge.com/minecraft/modpacks/ultimate-building-modpack
|
|
||||||
# With https://www.curseforge.com/minecraft/mc-mods/bits-and-chisels
|
|
||||||
builder = {
|
|
||||||
enable = false;
|
|
||||||
|
|
||||||
jvmMaxAllocation = "6G";
|
|
||||||
jvmInitialAllocation = "2G";
|
|
||||||
jvmPackage = jre18;
|
|
||||||
jvmOpts = "";
|
|
||||||
|
|
||||||
serverConfig =
|
|
||||||
{
|
|
||||||
server-port = 25567;
|
|
||||||
motd = "creative mode gaming with mods";
|
|
||||||
|
|
||||||
extra-options = {
|
|
||||||
generate-structures = false;
|
|
||||||
level-type = "minecraft:flat";
|
|
||||||
difficulty = "hard";
|
|
||||||
enable-command-block = true;
|
|
||||||
enforce-white-list = false;
|
|
||||||
gamemode = "creative";
|
|
||||||
max-players = 6;
|
|
||||||
view-distance = 16;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
// defaults;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Vault Hunters
|
|
||||||
vh = {
|
|
||||||
enable = false;
|
|
||||||
|
|
||||||
jvmMaxAllocation = "12G";
|
|
||||||
jvmInitialAllocation = "2G";
|
|
||||||
jvmPackage = jre17;
|
|
||||||
jvmOpts = "";
|
|
||||||
|
|
||||||
serverConfig =
|
|
||||||
{
|
|
||||||
server-port = 25569;
|
|
||||||
motd = "we do a little hunting of the vaults";
|
|
||||||
|
|
||||||
extra-options = {
|
|
||||||
difficulty = "hard";
|
|
||||||
enable-command-block = true;
|
|
||||||
entity-broadcast-range-percentage = 150;
|
|
||||||
level-type = "default";
|
|
||||||
max-players = 8;
|
|
||||||
spawn-protection = 0;
|
|
||||||
sync-chunk-writes = true;
|
|
||||||
use-native-transport = true;
|
|
||||||
view-distance = 10;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
// defaults;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
BIN
flake.lock
BIN
flake.lock
Binary file not shown.
BIN
flake.nix
BIN
flake.nix
Binary file not shown.
|
@ -79,9 +79,9 @@ let
|
||||||
};
|
};
|
||||||
|
|
||||||
serviviInputs = {
|
serviviInputs = {
|
||||||
nms = mkDep {
|
minix = mkDep {
|
||||||
owner = "matt1432";
|
owner = "matt1432";
|
||||||
repo = "nixos-minecraft-servers";
|
repo = "Minix";
|
||||||
};
|
};
|
||||||
|
|
||||||
nix-eval-jobs = mkDep {
|
nix-eval-jobs = mkDep {
|
||||||
|
@ -208,10 +208,6 @@ let
|
||||||
owner = "phoneybadger";
|
owner = "phoneybadger";
|
||||||
repo = "pokemon-colorscripts";
|
repo = "pokemon-colorscripts";
|
||||||
}
|
}
|
||||||
{
|
|
||||||
owner = "Malpiszonekx4";
|
|
||||||
repo = "curseforge-server-downloader";
|
|
||||||
}
|
|
||||||
{
|
{
|
||||||
name = "gpu-screen-recorder-src";
|
name = "gpu-screen-recorder-src";
|
||||||
type = "git";
|
type = "git";
|
||||||
|
|
|
@ -7,7 +7,6 @@ This directory encompasses every derivations for packages exposed by my flake.
|
||||||
| Name | Source / Description |
|
| Name | Source / Description |
|
||||||
| ------------------------------ | -------------------- |
|
| ------------------------------ | -------------------- |
|
||||||
| `coloryou` | A custom package to get the main colors from a picture I forked from [here](https://github.com/dharmx/vile/blob/7d486c128c7e553912673755f97b118aaab0193d/src/shell/playerctl.py#L2) |
|
| `coloryou` | A custom package to get the main colors from a picture I forked from [here](https://github.com/dharmx/vile/blob/7d486c128c7e553912673755f97b118aaab0193d/src/shell/playerctl.py#L2) |
|
||||||
| `curseforge-server-downloader` | [Github](https://github.com/Malpiszonekx4/curseforge-server-downloader) |
|
|
||||||
| `gpu-screen-recorder` | [Git](https://git.dec05eba.com/gpu-screen-recorder/about) |
|
| `gpu-screen-recorder` | [Git](https://git.dec05eba.com/gpu-screen-recorder/about) |
|
||||||
| `pam-fprint-grosshack` | [GitLab](https://gitlab.com/mishakmak/pam-fprint-grosshack) |
|
| `pam-fprint-grosshack` | [GitLab](https://gitlab.com/mishakmak/pam-fprint-grosshack) |
|
||||||
| `pokemon-colorscripts` | [GitLab](https://gitlab.com/phoneybadger/pokemon-colorscripts) |
|
| `pokemon-colorscripts` | [GitLab](https://gitlab.com/phoneybadger/pokemon-colorscripts) |
|
||||||
|
|
|
@ -1,14 +0,0 @@
|
||||||
{
|
|
||||||
buildGoModule,
|
|
||||||
curseforge-server-downloader-src,
|
|
||||||
mkVersion,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
buildGoModule {
|
|
||||||
pname = "curseforge-server-downloader";
|
|
||||||
version = mkVersion curseforge-server-downloader-src;
|
|
||||||
|
|
||||||
src = curseforge-server-downloader-src;
|
|
||||||
doCheck = false;
|
|
||||||
vendorHash = null;
|
|
||||||
}
|
|
|
@ -5,11 +5,6 @@
|
||||||
} @ inputs: {
|
} @ inputs: {
|
||||||
coloryou = pkgs.callPackage ./coloryou {};
|
coloryou = pkgs.callPackage ./coloryou {};
|
||||||
|
|
||||||
curseforge-server-downloader = pkgs.callPackage ./curseforge-server-downloader {
|
|
||||||
inherit (inputs) curseforge-server-downloader-src;
|
|
||||||
inherit mkVersion;
|
|
||||||
};
|
|
||||||
|
|
||||||
gpu-screen-recorder = pkgs.callPackage ./gpu-screen-recorder {
|
gpu-screen-recorder = pkgs.callPackage ./gpu-screen-recorder {
|
||||||
inherit (inputs) gpu-screen-recorder-src;
|
inherit (inputs) gpu-screen-recorder-src;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue