add common minecraft server overlays and basic paper minecraft server.
This commit is contained in:
parent
78acd1ba12
commit
88fd5146f0
2 changed files with 13 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{ config, lib, inputs, ... }:
|
||||
{ config, lib, inputs, pkgs, ... }:
|
||||
let
|
||||
sanoidConfig = import ./config/sanoid.nix { };
|
||||
disks = import ./config/disks.nix;
|
||||
|
@ -12,6 +12,7 @@ in
|
|||
[
|
||||
inputs.disko.nixosModules.disko
|
||||
(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
|
||||
|
@ -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.
|
||||
mySystem = {
|
||||
purpose = "Production";
|
||||
|
|
|
@ -28,6 +28,7 @@ in
|
|||
# smartmontools = smartmontoolsOverlay;
|
||||
termius = termiusOverlay;
|
||||
# vivaldi = vivaldiOverlay;
|
||||
nix-minecraft = inputs.nix-minecraft.overlay;
|
||||
|
||||
# The unstable nixpkgs set (declared in the flake inputs) will
|
||||
# be accessible through 'pkgs.unstable'
|
||||
|
|
Loading…
Reference in a new issue