add minecraft server

This commit is contained in:
ChaotiCryptidz 2022-01-17 21:46:54 +00:00
parent c5dfb68978
commit c7ebd6e26f
3 changed files with 9 additions and 10 deletions

View file

@ -1,13 +1,3 @@
{ pkgs, ... }: { { pkgs, ... }: {
home.packages = with pkgs; [ xdg-utils ]; home.packages = with pkgs; [ xdg-utils ];
xdg = {
portal = {
enable = true;
extraPortals = with pkgs; [
xdg-desktop-portal-wlr
xdg-desktop-portal-gtk
];
gtkUsePortal = true;
};
};
} }

View file

@ -15,6 +15,7 @@
hosts.hetzner-vm.services.vault hosts.hetzner-vm.services.vault
hosts.hetzner-vm.services.netdata hosts.hetzner-vm.services.netdata
hosts.hetzner-vm.services.quassel hosts.hetzner-vm.services.quassel
hosts.hetzner-vm.services.minecraft
(modulesPath + "/profiles/qemu-guest.nix") (modulesPath + "/profiles/qemu-guest.nix")
]; ];

View file

@ -0,0 +1,8 @@
{ pkgs, ... }: {
services.minecraft-server = {
enable = true;
eula = true;
openFirewall = true;
package = pkgs.papermc;
};
}