From 78ef7310b68c95188488ba82e8daa5f54e842fb0 Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Thu, 2 Jan 2025 13:16:31 -0800 Subject: [PATCH] Add minecraft server to desktop --- dotfiles/nixos/desktop/configuration.nix | 1 + dotfiles/nixos/desktop/services/minecraft-server.nix | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 dotfiles/nixos/desktop/services/minecraft-server.nix diff --git a/dotfiles/nixos/desktop/configuration.nix b/dotfiles/nixos/desktop/configuration.nix index fdc6aac2..950cca70 100644 --- a/dotfiles/nixos/desktop/configuration.nix +++ b/dotfiles/nixos/desktop/configuration.nix @@ -14,6 +14,7 @@ ./services/ssh.nix ./services/syncthing.nix ./services/vintagestory.nix + ./services/minecraft-server.nix ./sysconfig/desktop-environment.nix ./sysconfig/fonts.nix diff --git a/dotfiles/nixos/desktop/services/minecraft-server.nix b/dotfiles/nixos/desktop/services/minecraft-server.nix new file mode 100644 index 00000000..1527348a --- /dev/null +++ b/dotfiles/nixos/desktop/services/minecraft-server.nix @@ -0,0 +1,5 @@ +{ pkgs, ... }: { + environment.systemPackages = [ pkgs.minecraft-server ]; + networking.firewall.allowedTCPPorts = [ 25565 ]; + networking.firewall.allowedUDPPorts = [ 25565 ]; +}