add truth machine
This commit is contained in:
parent
dd3e5ff954
commit
f29a8410ce
4 changed files with 47 additions and 0 deletions
21
nixosConfigurations/hyperforge/truth-machine.nix
Normal file
21
nixosConfigurations/hyperforge/truth-machine.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{ truth-machine, ... }:
|
||||
let
|
||||
domain = "truth.darkest.space";
|
||||
in
|
||||
{
|
||||
imports = [ truth-machine.nixosModules.default ];
|
||||
|
||||
services = {
|
||||
truth-machine = {
|
||||
enable = true;
|
||||
virtualHost = domain;
|
||||
# ANTHROPIC_API_KEY, TRUTH_ADMIN_PASSWORD and TRUTH_ADMIN_PATH, placed manually
|
||||
environmentFile = "/etc/secrets/truth-machine.env";
|
||||
};
|
||||
|
||||
nginx.virtualHosts.${domain} = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Reference in a new issue