add minecraft server
This commit is contained in:
parent
c5dfb68978
commit
c7ebd6e26f
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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")
|
||||
];
|
||||
|
|
8
hosts/hetzner-vm/services/minecraft.nix
Normal file
8
hosts/hetzner-vm/services/minecraft.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{ pkgs, ... }: {
|
||||
services.minecraft-server = {
|
||||
enable = true;
|
||||
eula = true;
|
||||
openFirewall = true;
|
||||
package = pkgs.papermc;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue