From c7ebd6e26fee95375f01653441a1c5a962f840de Mon Sep 17 00:00:00 2001 From: ChaotiCryptidz Date: Mon, 17 Jan 2022 21:46:54 +0000 Subject: [PATCH] add minecraft server --- home/gui/xdg.nix | 10 ---------- hosts/hetzner-vm/hetzner-vm.nix | 1 + hosts/hetzner-vm/services/minecraft.nix | 8 ++++++++ 3 files changed, 9 insertions(+), 10 deletions(-) create mode 100644 hosts/hetzner-vm/services/minecraft.nix diff --git a/home/gui/xdg.nix b/home/gui/xdg.nix index ef22460..9458a41 100644 --- a/home/gui/xdg.nix +++ b/home/gui/xdg.nix @@ -1,13 +1,3 @@ { pkgs, ... }: { home.packages = with pkgs; [ xdg-utils ]; - xdg = { - portal = { - enable = true; - extraPortals = with pkgs; [ - xdg-desktop-portal-wlr - xdg-desktop-portal-gtk - ]; - gtkUsePortal = true; - }; - }; } diff --git a/hosts/hetzner-vm/hetzner-vm.nix b/hosts/hetzner-vm/hetzner-vm.nix index 8dcb219..087dc5b 100644 --- a/hosts/hetzner-vm/hetzner-vm.nix +++ b/hosts/hetzner-vm/hetzner-vm.nix @@ -15,6 +15,7 @@ hosts.hetzner-vm.services.vault hosts.hetzner-vm.services.netdata hosts.hetzner-vm.services.quassel + hosts.hetzner-vm.services.minecraft (modulesPath + "/profiles/qemu-guest.nix") ]; diff --git a/hosts/hetzner-vm/services/minecraft.nix b/hosts/hetzner-vm/services/minecraft.nix new file mode 100644 index 0000000..e82e508 --- /dev/null +++ b/hosts/hetzner-vm/services/minecraft.nix @@ -0,0 +1,8 @@ +{ pkgs, ... }: { + services.minecraft-server = { + enable = true; + eula = true; + openFirewall = true; + package = pkgs.papermc; + }; +}