This repository has no description
910 B
33 lines
1{ config, self, ... }:
2let
3 domain = "review.lassul.us";
4 port = 8476;
5in
6{
7 # read-only dashboard of open nixpkgs PRs (github.com/Lassulus/nixpkgs-triage)
8 imports = [ self.inputs.nixpkgs-triage.nixosModules.default ];
9
10 services.nixpkgs-triage = {
11 enable = true;
12 inherit port;
13 environmentFile = config.clan.core.vars.generators.nixpkgs-triage.files.env.path;
14 };
15
16 clan.core.vars.generators.nixpkgs-triage = {
17 files.env = { };
18 prompts.token = {
19 description = "GitHub token for syncing open nixpkgs PRs (read-only access to public repos is enough)";
20 type = "hidden";
21 persist = false;
22 };
23 script = ''
24 printf 'GITHUB_TOKEN=%s\n' "$(tr -d '\n' < "$prompts/token")" > "$out/env"
25 '';
26 };
27
28 services.nginx.virtualHosts.${domain} = {
29 enableACME = true;
30 forceSSL = true;
31 locations."/".proxyPass = "http://127.0.0.1:${toString port}";
32 };
33}