Use minecraft-server from unstable

This commit is contained in:
Paul-Henri Froidmont 2022-07-19 06:34:33 +02:00
parent 1808cdc632
commit 0b484ab7a7
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE
2 changed files with 12 additions and 4 deletions

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ config, lib, pkgs, pkgs-unstable, ... }:
{
imports = [
../environment.nix
@ -65,10 +65,9 @@
if failed port 443 protocol https with timeout 20 seconds then alert
'';
nixpkgs.config.allowUnfree = true;
services.minecraft-server = {
enable = true;
package = pkgs-unstable.minecraft-server;
eula = true;
openFirewall = true;
declarative = true;