gerd.teeworlds: add secrets patch + secrets
This commit is contained in:
parent
87f69b6f5a
commit
0c47c0cbe6
5 changed files with 35 additions and 5 deletions
|
@ -7,14 +7,17 @@
|
||||||
|
|
||||||
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 = {
|
mine.shared.meta.teeworlds = {
|
||||||
name = "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 = "";
|
url = "";
|
||||||
|
|
||||||
|
secrets.auth = config.age.secrets.teeworlds-env.path;
|
||||||
|
|
||||||
package = let
|
package = let
|
||||||
pkg = config.services.teeworlds.package;
|
pkg = config.services.teeworlds.package;
|
||||||
in {
|
in {
|
||||||
|
|
|
@ -24,6 +24,9 @@
|
||||||
|
|
||||||
# forgejo
|
# forgejo
|
||||||
forgejo-authelia-secret.file = ./forgejo/authelia-secret.age;
|
forgejo-authelia-secret.file = ./forgejo/authelia-secret.age;
|
||||||
|
|
||||||
|
# teeworlds
|
||||||
|
teeworlds-env.file = ./teeworlds/env.age;
|
||||||
};
|
};
|
||||||
|
|
||||||
users.groups.secrets-lldap-bind-user-pass = {};
|
users.groups.secrets-lldap-bind-user-pass = {};
|
||||||
|
|
|
@ -28,4 +28,7 @@ in
|
||||||
|
|
||||||
# forgejo
|
# forgejo
|
||||||
"forgejo/authelia-secret.age".publicKeys = defaultAccess;
|
"forgejo/authelia-secret.age".publicKeys = defaultAccess;
|
||||||
|
|
||||||
|
# teeworlds
|
||||||
|
"teeworlds/env.age".publicKeys = defaultAccess;
|
||||||
}
|
}
|
||||||
|
|
10
secrets/teeworlds/env.age
Normal file
10
secrets/teeworlds/env.age
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
age-encryption.org/v1
|
||||||
|
-> ssh-ed25519 QSDXqg ntHsb1DKwiuswQq/BKhTw0mmvlnvanpPhjdY3lD4NWo
|
||||||
|
uXVQHnjMlPBFPgbAB9oLARUMZ78EW15Kv7YgKXeL/YU
|
||||||
|
-> ssh-ed25519 n8n9DQ BSnWJrmod7N8R0HxhDE+M/pycuTXzE2WsYzWAi846Ww
|
||||||
|
G4c3sZ2holV5VBpPIibkfXXSW638uv26Cow2LFdEkLw
|
||||||
|
-> ssh-ed25519 BTp6UA 0mA1o+wWla0IFOqaZNVNdgzOqc1fawUde9dqEUi4tws
|
||||||
|
OGhqQu4ogpRo5jHZsYCyNb4VaQOfeKdOJpI8r8LcVVs
|
||||||
|
--- /RpUgDJ08NIK80JCW+UhEODKdXBpkPchxetQuTpcH94
|
||||||
|
âl©ÎY |-LX á@Gû[[ˆÆˆÈ;œO`ó.c‡ÚE#µJÅM]ÇzïK^ÎéJ…Ä{ÿh§½RAPvNî0¿¤³Gÿ'
|
||||||
|
èu#¹Ú_é
|
|
@ -4,4 +4,15 @@ let
|
||||||
# declare pkgs from sources
|
# declare pkgs from sources
|
||||||
pkgs = import sources.nixpkgs { };
|
pkgs = import sources.nixpkgs { };
|
||||||
in sources // {
|
in sources // {
|
||||||
|
nixpkgs = pkgs.applyPatches {
|
||||||
|
src = sources.nixpkgs;
|
||||||
|
name = "nixpkgs-patched";
|
||||||
|
patches = [
|
||||||
|
# tmp teeworlds fetchpatch to inject secrets
|
||||||
|
(pkgs.fetchpatch {
|
||||||
|
url = "https://github.com/NixOS/nixpkgs/pull/334590.patch";
|
||||||
|
sha256 = "sha256-5Uf/jLV0CJFbWyPmkpF4kEVISvoG+fujvTAFIR0a2ek=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue