mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Fix astral
This commit is contained in:
parent
33895b9c46
commit
dcfd4b7f3a
4 changed files with 25 additions and 9 deletions
|
|
@ -20,7 +20,11 @@ in {
|
|||
mods.theme.scheme = "woodland";
|
||||
mods.theme.wallpaper = ./wallpaper.png;
|
||||
|
||||
# mods.server.astral.enable = true;
|
||||
mods.tailscale.enable = true;
|
||||
|
||||
mods.unfree.minecraft.enable = true;
|
||||
mods.server.astral.enable = true;
|
||||
mods.server.astral.memory = "2G";
|
||||
|
||||
# Use the GRUB 2 boot loader.
|
||||
boot.loader.grub.enable = true;
|
||||
|
|
|
|||
|
|
@ -20,9 +20,12 @@ in {
|
|||
fsType = "ext4";
|
||||
};
|
||||
|
||||
swapDevices =
|
||||
[ { device = "/dev/disk/by-uuid/bc6acd1f-98bb-4f94-b52c-40aa7312e838"; }
|
||||
];
|
||||
swapDevices = [{
|
||||
device = "/dev/disk/by-uuid/bc6acd1f-98bb-4f94-b52c-40aa7312e838";
|
||||
} {
|
||||
device = "/var/lib/swapfile";
|
||||
size = 2*1024;
|
||||
}];
|
||||
|
||||
networking.useDHCP = lib.mkForce false;
|
||||
networking.domain = "";
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ let
|
|||
# version = "main";
|
||||
url = "https://github.com/nix-astral/create-astral/raw/main/pack.toml";
|
||||
packHash = "sha256-QcUg4PRxgGdQIB5d+XnJCmhh6+r/zDtWRFSTkSOR1ik=";
|
||||
manifestHash = "sha256:0kcwbj2f9h30v8kwxhaxzzs2gi3bydzmjgxb2ysf8jv1av1l21n3";
|
||||
manifestHash = "sha256:16pjv73nv7a5fy6rvzgg88228niirnwd0ip7mw5dmzd7q1b0xqsr";
|
||||
};
|
||||
mcVersion = modpack.manifest.versions.minecraft;
|
||||
fabricVersion = modpack.manifest.versions.fabric;
|
||||
|
|
@ -16,12 +16,19 @@ in {
|
|||
default = false;
|
||||
description = "enables minecraft create astral server";
|
||||
};
|
||||
memory = lib.mkOption {
|
||||
default = "2G";
|
||||
description = "server detitated wam";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf config.mods.server.astral.enable {
|
||||
services.minecraft-servers.servers.astral = {
|
||||
enable = true;
|
||||
jvmOpts = (import ./aikar-flags.nix) "4G";
|
||||
serverProperties = {
|
||||
online-mode = false;
|
||||
};
|
||||
jvmOpts = (import ./aikar-flags.nix) config.mods.server.astral.memory;
|
||||
package = pkgs.fabricServers.${serverVersion}.override {
|
||||
loaderVersion = fabricVersion;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -21,9 +21,11 @@
|
|||
inputs.nix-minecraft.overlay
|
||||
];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
prismlauncher
|
||||
];
|
||||
environment.systemPackages = with pkgs;
|
||||
if config.mods.xorg.enable then
|
||||
[ prismlauncher ]
|
||||
else
|
||||
[];
|
||||
|
||||
services.minecraft-servers = {
|
||||
enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue