blob: 648d8d5aa42f32c57b04252928f12fc96639fb23 (
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
|
{ config, pkgs, lib, grapevine, conduit, conduwuit, ... }:
{
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/discordbots.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";
# extraHosts = ''
# 127.0.0.1 rory.gay
# 127.0.0.1 matrix.rory.gay
# 127.0.0.1 conduit.rory.gay
# '';
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."conduwuit-throwaway" = import ./services/containers/conduwuit-throwaway/container.nix {
# inherit pkgs lib;
# conduit = conduwuit;
#};
system.stateVersion = "22.11"; # DO NOT EDIT!
}
|