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 54 additions and 159 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;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
59
flake.lock
59
flake.lock
|
@ -191,6 +191,22 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"curseforge-server-downloader-src_2": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1691252534,
|
||||||
|
"narHash": "sha256-GqFj2Rms6BxzWdQTQ9imXKSlov3sDk8Cwwl9lwjIGzM=",
|
||||||
|
"owner": "Malpiszonekx4",
|
||||||
|
"repo": "curseforge-server-downloader",
|
||||||
|
"rev": "91901b2efc64ac54c9135d537e4118e2ac0bd286",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "Malpiszonekx4",
|
||||||
|
"repo": "curseforge-server-downloader",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"discord-overlay": {
|
"discord-overlay": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"Vencord-src": "Vencord-src",
|
"Vencord-src": "Vencord-src",
|
||||||
|
@ -1179,6 +1195,27 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"minix": {
|
||||||
|
"inputs": {
|
||||||
|
"curseforge-server-downloader-src": "curseforge-server-downloader-src_2",
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1720836836,
|
||||||
|
"narHash": "sha256-2jkzfa6+LfCIJvXxt1gRtYABeoM8OSs4ZCaEQahWzH8=",
|
||||||
|
"owner": "matt1432",
|
||||||
|
"repo": "Minix",
|
||||||
|
"rev": "7537fb893d9485da8313df19db87f710dc4f13ce",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "matt1432",
|
||||||
|
"repo": "Minix",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"modernx-src": {
|
"modernx-src": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
|
@ -1818,26 +1855,6 @@
|
||||||
"type": "sourcehut"
|
"type": "sourcehut"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nms": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1717873515,
|
|
||||||
"narHash": "sha256-hi8GcyaKkbtD+qMn7n4RxkxHnVScSNyXiuANIbzKdBI=",
|
|
||||||
"owner": "matt1432",
|
|
||||||
"repo": "nixos-minecraft-servers",
|
|
||||||
"rev": "32d1ca998095948790d509d4365ac3e13aa58321",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "matt1432",
|
|
||||||
"repo": "nixos-minecraft-servers",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nmt": {
|
"nmt": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
|
@ -2033,6 +2050,7 @@
|
||||||
"jellyfin-ultrachromic-src": "jellyfin-ultrachromic-src",
|
"jellyfin-ultrachromic-src": "jellyfin-ultrachromic-src",
|
||||||
"jovian": "jovian",
|
"jovian": "jovian",
|
||||||
"libratbag-src": "libratbag-src",
|
"libratbag-src": "libratbag-src",
|
||||||
|
"minix": "minix",
|
||||||
"modernx-src": "modernx-src",
|
"modernx-src": "modernx-src",
|
||||||
"mozilla-addons-to-nix": "mozilla-addons-to-nix",
|
"mozilla-addons-to-nix": "mozilla-addons-to-nix",
|
||||||
"mpv-persist-properties-src": "mpv-persist-properties-src",
|
"mpv-persist-properties-src": "mpv-persist-properties-src",
|
||||||
|
@ -2049,7 +2067,6 @@
|
||||||
"nixd": "nixd",
|
"nixd": "nixd",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
"nixpkgs-wayland": "nixpkgs-wayland",
|
"nixpkgs-wayland": "nixpkgs-wayland",
|
||||||
"nms": "nms",
|
|
||||||
"nurl": "nurl",
|
"nurl": "nurl",
|
||||||
"nvim-theme-src": "nvim-theme-src",
|
"nvim-theme-src": "nvim-theme-src",
|
||||||
"pam-fprint-grosshack-src": "pam-fprint-grosshack-src",
|
"pam-fprint-grosshack-src": "pam-fprint-grosshack-src",
|
||||||
|
|
12
flake.nix
12
flake.nix
|
@ -164,6 +164,12 @@
|
||||||
repo = "libratbag";
|
repo = "libratbag";
|
||||||
type = "github";
|
type = "github";
|
||||||
};
|
};
|
||||||
|
minix = {
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
owner = "matt1432";
|
||||||
|
repo = "Minix";
|
||||||
|
type = "github";
|
||||||
|
};
|
||||||
modernx-src = {
|
modernx-src = {
|
||||||
flake = false;
|
flake = false;
|
||||||
owner = "cyl0";
|
owner = "cyl0";
|
||||||
|
@ -260,12 +266,6 @@
|
||||||
repo = "nixpkgs-wayland";
|
repo = "nixpkgs-wayland";
|
||||||
type = "github";
|
type = "github";
|
||||||
};
|
};
|
||||||
nms = {
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
owner = "matt1432";
|
|
||||||
repo = "nixos-minecraft-servers";
|
|
||||||
type = "github";
|
|
||||||
};
|
|
||||||
nurl = {
|
nurl = {
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
owner = "matt1432";
|
owner = "matt1432";
|
||||||
|
|
|
@ -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