add truth machine
This commit is contained in:
parent
dd3e5ff954
commit
f29a8410ce
4 changed files with 47 additions and 0 deletions
21
flake.lock
generated
21
flake.lock
generated
|
|
@ -799,6 +799,7 @@
|
||||||
"stylix": "stylix",
|
"stylix": "stylix",
|
||||||
"treefmt-nix": "treefmt-nix_2",
|
"treefmt-nix": "treefmt-nix_2",
|
||||||
"trollshell": "trollshell",
|
"trollshell": "trollshell",
|
||||||
|
"truth-machine": "truth-machine",
|
||||||
"zerforschen-plus": "zerforschen-plus"
|
"zerforschen-plus": "zerforschen-plus"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -1091,6 +1092,26 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"truth-machine": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1792286440,
|
||||||
|
"narHash": "sha256-B9NYbg7xyzSrP/+g70jp0PfyikylMoPw7XAOCltHn6c=",
|
||||||
|
"ref": "refs/heads/main",
|
||||||
|
"rev": "a874d5d119847413be78f21f25868d668498c7c8",
|
||||||
|
"revCount": 8,
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://forge.darkest.space/mara/truth.bat.git"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://forge.darkest.space/mara/truth.bat.git"
|
||||||
|
}
|
||||||
|
},
|
||||||
"xwayland-satellite-stable": {
|
"xwayland-satellite-stable": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
|
|
|
||||||
|
|
@ -97,6 +97,10 @@
|
||||||
home-manager.follows = "home-manager";
|
home-manager.follows = "home-manager";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
truth-machine = {
|
||||||
|
url = "git+https://forge.darkest.space/mara/truth.bat.git";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
zerforschen-plus = {
|
zerforschen-plus = {
|
||||||
url = "git+https://forge.darkest.space/mara/zerforschen.plus.git";
|
url = "git+https://forge.darkest.space/mara/zerforschen.plus.git";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@
|
||||||
./hardware.nix
|
./hardware.nix
|
||||||
./forgejo.nix
|
./forgejo.nix
|
||||||
./nginx.nix
|
./nginx.nix
|
||||||
|
./truth-machine.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
|
|
|
||||||
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