gerd.teeworlds: add secrets patch + secrets

This commit is contained in:
eyjhb 2024-08-14 12:24:04 +02:00
parent 87f69b6f5a
commit 0c47c0cbe6
Signed by: eyjhb
GPG key ID: 609F508E3239F920
5 changed files with 35 additions and 5 deletions

View file

@ -2,19 +2,22 @@
{
services.teeworlds = {
enable = true;
openPorts = true;
enable = true;
openPorts = true;
motd = "Welcome to ${config.mine.shared.settings.domain}'s Teeworld server!";
motd = "Welcome to ${config.mine.shared.settings.domain}'s Teeworld server!";
password = "XHDThcZGjBW8W4UGZ7bwYVbgPErJobuv";
environmentFile = config.age.secrets.teeworlds-env.path;
password = "$TEEWORLDS_PASSWORD";
};
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" "password ${config.services.teeworlds.password}"'`, the password is ${config.services.teeworlds.password}'';
description = ''We host our own Teeworlds instance. Connect using `nix-shell -p teeworlds --run 'teeworlds "connect teeworlds.fricloud.dk" "password {{secrets.TEEWORLDS_PASSWORD}}"'`, the password is {{secrets.TEEWORLDS_PASSWORD}}'';
url = "";
secrets.auth = config.age.secrets.teeworlds-env.path;
package = let
pkg = config.services.teeworlds.package;
in {