server-configs/machines/gerd/services/teeworlds.nix

27 lines
674 B
Nix
Raw Normal View History

2024-08-11 12:50:32 +00:00
{ config, ... }:
{
services.teeworlds = {
enable = true;
openPorts = true;
motd = "Welcome to ${config.mine.shared.settings.domain}'s Teeworld server!";
password = "XHDThcZGjBW8W4UGZ7bwYVbgPErJobuv";
};
mine.shared.meta.teeworlds = {
name = "Teeworlds";
description = ''We host our own Teeworlds instance. Connect using `nix-shell -p teeworlds --run 'teeworlds "connect teeworlds.fricloud.dk"'`, the password is ${config.services.teeworlds.password}'';
url = "";
package = let
pkg = config.services.teeworlds.package;
in {
name = pkg.pname;
version = pkg.version;
meta = pkg.meta;
};
};
}