add common minecraft server overlays and basic paper minecraft server.

This commit is contained in:
Joseph Hanson 2024-10-09 15:17:48 -05:00
parent 78acd1ba12
commit 88fd5146f0
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o
2 changed files with 13 additions and 1 deletions

View file

@ -1,7 +1,7 @@
# Do not modify this file! It was generated by nixos-generate-config # Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes # and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead. # to /etc/nixos/configuration.nix instead.
{ config, lib, inputs, ... }: { config, lib, inputs, pkgs, ... }:
let let
sanoidConfig = import ./config/sanoid.nix { }; sanoidConfig = import ./config/sanoid.nix { };
disks = import ./config/disks.nix; disks = import ./config/disks.nix;
@ -12,6 +12,7 @@ in
[ [
inputs.disko.nixosModules.disko inputs.disko.nixosModules.disko
(import ../../profiles/disko-nixos.nix { disks = [ "/dev/sda|/dev/disk/by-id/nvme-Samsung_SSD_970_EVO_Plus_500GB_S58SNM0W406409E" ]; }) (import ../../profiles/disko-nixos.nix { disks = [ "/dev/sda|/dev/disk/by-id/nvme-Samsung_SSD_970_EVO_Plus_500GB_S58SNM0W406409E" ]; })
inputs.nix-minecraft.nixosModules.minecraft-servers
]; ];
# Debug # Debug
@ -99,6 +100,16 @@ in
}; };
}; };
## Minecraft
services.minecraft-servers = {
enable = true;
eula = true;
servers.eregion = {
enable = true;
package = pkgs.paper-server;
};
};
# System settings and services. # System settings and services.
mySystem = { mySystem = {
purpose = "Production"; purpose = "Production";

View file

@ -28,6 +28,7 @@ in
# smartmontools = smartmontoolsOverlay; # smartmontools = smartmontoolsOverlay;
termius = termiusOverlay; termius = termiusOverlay;
# vivaldi = vivaldiOverlay; # vivaldi = vivaldiOverlay;
nix-minecraft = inputs.nix-minecraft.overlay;
# The unstable nixpkgs set (declared in the flake inputs) will # The unstable nixpkgs set (declared in the flake inputs) will
# be accessible through 'pkgs.unstable' # be accessible through 'pkgs.unstable'