aboutsummaryrefslogtreecommitdiffstats
path: root/systems/system1/configuration.nix
blob: a1889fbdaaf12124addbf670dc3c1563dd5d10d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{ lib, pkgs, ... }:
{
  imports = [
    # TODO auto-load config
    <fysiweb/configs>
    <fysiweb/configs/hcloud>
    ../../configs
    # TODO auto-load modules
    ../../modules/abuilder
    ../../modules/fysiweb-capabilities
  ];

  config = lib.mkMerge [
    {
      networking.hostName = "system1";
    }
    {
      fysiweb-apps.public.static-users.public.users.aforemny.publicKeyFile = toString ../../public + "/aforemny.id_rsa.pub";
      fysiweb-apps.public.static-users.public.users.kirchner.publicKeyFile = toString ../../public + "/kirchner.id_rsa.pub";
    }
    {
      fysiweb-apps.public.static-website."nomath-org".domain = "nomath.org";
      fysiweb-apps.public.static-website."nomath-org".root = "/var/lib/abuilder/nomath-org/main";
    }
    {
      fysiweb-apps.public.static-website."static-nomath-org".domain = "static.nomath.org";
      fysiweb-apps.public.static-website."static-nomath-org".root = "/var/lib/abuilder/static-nomath-org/main";
    }
    {
      fysiweb-apps.public.cgit."code-nomath-org".domain = "code.nomath.org";

      fysiweb-apps.public.cgit."code-nomath-org".repositories."abuilder".description = "simple build daemon";
      fysiweb-apps.public.cgit."code-nomath-org".repositories."anissue".description = "in-source issue management";
      fysiweb-apps.public.cgit."code-nomath-org".repositories."apaperless".description = "document archival system";
      fysiweb-apps.public.cgit."code-nomath-org".repositories."infra".description = "nomath.org infrastructure";
      fysiweb-apps.public.cgit."code-nomath-org".repositories."json2sql".description = "simple storage system";
      fysiweb-apps.public.cgit."code-nomath-org".repositories."nomath-org".description = "nomath.org website";
      fysiweb-apps.public.cgit."code-nomath-org".repositories."static-nomath-org".description = "static.nomath.org website";

      fysiweb-apps.public.cgit."code-nomath-org".settings.css = "https://static.nomath.org/cgit.css";
      fysiweb-apps.public.cgit."code-nomath-org".settings.logo = "https://static.nomath.org/logo_cgit.png";
      fysiweb-apps.public.cgit."code-nomath-org".settings.max-stats = "year";
      fysiweb-apps.public.cgit."code-nomath-org".settings.root-desc = "";
      fysiweb-apps.public.cgit."code-nomath-org".settings.root-title = "code.nomath.org";
    }
    {
      # TODO add abuilder fysiweb app
      services.abuilder.enable = true;
      services.abuilder.repositories = [
        "/var/lib/git/nomath-org"
        "/var/lib/git/static-nomath-org"
      ];
    }
  ];
}