gerd.teeworlds: add secrets patch + secrets
This commit is contained in:
parent
87f69b6f5a
commit
0c47c0cbe6
5 changed files with 35 additions and 5 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue