2024-08-11 12:50:32 +00:00
|
|
|
{ config, ... }:
|
|
|
|
|
2024-08-08 17:00:37 +00:00
|
|
|
{
|
|
|
|
services.teeworlds = {
|
2024-08-14 10:24:04 +00:00
|
|
|
enable = true;
|
|
|
|
openPorts = true;
|
2024-08-08 17:00:37 +00:00
|
|
|
|
2024-08-14 10:24:04 +00:00
|
|
|
motd = "Welcome to ${config.mine.shared.settings.domain}'s Teeworld server!";
|
2024-08-13 12:42:32 +00:00
|
|
|
|
2024-08-14 10:24:04 +00:00
|
|
|
environmentFile = config.age.secrets.teeworlds-env.path;
|
|
|
|
password = "$TEEWORLDS_PASSWORD";
|
2024-08-13 12:42:32 +00:00
|
|
|
};
|
|
|
|
|
2024-11-20 18:21:07 +00:00
|
|
|
mine.shared.meta.teeworlds = rec {
|
2024-08-13 12:42:32 +00:00
|
|
|
name = "Teeworlds";
|
2024-11-20 18:21:07 +00:00
|
|
|
description = ''We host our own Teeworlds instance. Connect using `nix-shell -p teeworlds --run 'teeworlds "connect ${url}" "password {{secrets.TEEWORLDS_PASSWORD}}"'`, the password is {{secrets.TEEWORLDS_PASSWORD}}'';
|
|
|
|
url = "teeworlds.${config.mine.shared.settings.domain}";
|
2024-08-13 12:42:32 +00:00
|
|
|
|
2024-08-14 10:24:04 +00:00
|
|
|
secrets.auth = config.age.secrets.teeworlds-env.path;
|
|
|
|
|
2024-08-13 12:42:32 +00:00
|
|
|
package = let
|
|
|
|
pkg = config.services.teeworlds.package;
|
|
|
|
in {
|
|
|
|
name = pkg.pname;
|
|
|
|
version = pkg.version;
|
|
|
|
meta = pkg.meta;
|
|
|
|
};
|
2024-08-08 17:00:37 +00:00
|
|
|
};
|
|
|
|
}
|