summary refs log tree commit diff
path: root/host/Rory-nginx/configuration.nix
blob: 83d7a35353fd62fae2b5852f9ba08b88c55ff82c (plain) (blame)
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{
  config,
  pkgs,
  lib,
  grapevine,
  conduit,
  conduwuit,
  nixpkgs-Draupnir,
  ...
}:

{
  imports = [
    ../../modules/base-server.nix
    ../../modules/users/levi.nix
    ../../modules/users/db2k.nix
    ../../modules/users/ks.nix
    ../../modules/users/Alice.nix

    ./services/postgres.nix
    ./services/matrix/root.nix
    ./services/nginx/nginx.nix
    #./services/jitsi.nix
    ./services/cgit.nix
    #./services/ollama.nix
    ./services/prometheus.nix
  ];
  users.groups.ocp = { };
  networking = {
    hostName = "Rory-nginx";
    interfaces.ens18.ipv4.addresses = [
      {
        address = "192.168.1.2";
        prefixLength = 24;
      }
    ];
    interfaces.ens19.ipv4.addresses = [
      {
        address = "10.10.10.2";
        prefixLength = 16;
      }
    ];
    defaultGateway.interface = "ens18";
    nat = {
      enable = true;
      internalInterfaces = [
        "ve-+"
        "vb-+"
      ];
      externalInterface = "ens18";
      #enableIPv6 = true;
    };
  };

  environment.memoryAllocator.provider = "jemalloc";

  containers."pluralcontactbotpoc" = import ./services/containers/pluralcontactbotpoc/container.nix {
    inherit pkgs lib;
    conduit = grapevine;
  };

  containers."matrixunittests" = import ./services/containers/matrixunittests/container.nix {
    inherit pkgs lib;
    conduit = grapevine;
  };

  containers."matrixunittests-conduit" = import ./services/containers/matrixunittests-conduit/container.nix {
    inherit pkgs lib;
    conduit = conduit;
  };

  containers."draupnir-cme" = import ./services/containers/draupnir-cme/container.nix { inherit pkgs lib nixpkgs-Draupnir; };

  containers."draupnir-linux-mint" = import ./services/containers/draupnir-linux-mint/container.nix { inherit pkgs lib nixpkgs-Draupnir; };

  system.stateVersion = "22.11"; # DO NOT EDIT!
}