mirror of
https://forge.katzen.cafe/schrottkatze/nix-configs.git
synced 2024-12-22 17:35:50 +01:00
serverrr
This commit is contained in:
parent
18a9b51b9a
commit
1d47a987bb
2 changed files with 24 additions and 1 deletions
|
@ -12,6 +12,7 @@
|
|||
url = "path:./mac-brcm-fw";
|
||||
flake = false;
|
||||
};
|
||||
mms.url = "github:mkaito/nixos-modded-minecraft-servers";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, home-manager, nixos-hardware, mac-brcm-fw, ... }: {
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
{ config, pkgs, ... }:
|
||||
{ inputs, config, pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
# ./t2.nix
|
||||
# "${builtins.fetchGit { url = "https://github.com/kekrby/nixos-hardware.git"; }}/apple/t2"
|
||||
./hardware-configuration.nix
|
||||
../common.nix
|
||||
inputs.mms.module
|
||||
];
|
||||
|
||||
# boot.supportedFilesystems = pkgs.lib.mkForce [ "ext4" "btrfs" "squashfs" ];
|
||||
|
@ -98,6 +99,27 @@
|
|||
# networking.firewall.allowedTCPPorts = [ 4713 ];
|
||||
systemd.services."NetworkManager-wait-online".enable = false;
|
||||
|
||||
services.modded-minecraft-servers = {
|
||||
# This is mandatory, sorry.
|
||||
eula = true;
|
||||
|
||||
# The name will be used for the state folder and system user.
|
||||
# In this case, the folder is `/var/lib/mc-e2es`
|
||||
# and the user `mc-e2es`.
|
||||
instances = {
|
||||
standard-server = {
|
||||
enable = true;
|
||||
jvmMaxAllocation = "7G";
|
||||
jvmInitialAllocation = "2G";
|
||||
serverConfig = {
|
||||
# Port must be unique
|
||||
server-port = 8080;
|
||||
motd = "Hello world";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# i rly should put that important big comment back here
|
||||
system.stateVersion = "22.11"; # Did you read the comment?
|
||||
|
||||
|
|
Loading…
Reference in a new issue