summaryrefslogtreecommitdiffstats
path: root/2configs/tv/identity.nix
blob: 312c59d8da89d888dbfc821134fdf8112f8581ff (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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
{ config, ... }:

{
  imports = [ ../../3modules/tv/identity.nix ];
  tv.identity = {
    enable = true;
    hosts = {
      cd = {
        cores = 2;
        dc = "tv"; #dc = "cac";
        nets = {
          internet = {
            addrs4 = ["162.219.7.216"];
            aliases = [
              "cd.internet"
              "cd.viljetic.de"
              "cgit.cd.viljetic.de"
              "cd.krebsco.de"
            ];
          };
          retiolum = {
            addrs4 = ["10.243.113.222"];
            addrs6 = ["42:4522:25f8:36bb:8ccb:0150:231a:2af3"];
            aliases = [
              "cd.retiolum"
              "cgit.cd.retiolum"
            ];
          };
        };
        search = "retiolum";
      };
      mkdir = {
        cores = 1;
        dc = "tv"; #dc = "cac";
        nets = {
          retiolum = {
            addrs4 = ["10.243.113.223"];
            aliases = [
              "mkdir.retiolum"
              "cgit.mkdir.retiolum"
            ];
          };
        };
        search = "retiolum";
      };
      nomic = {
        cores = 2;
        dc = "tv"; #dc = "gg23";
        nets = {
          retiolum = {
            addrs4 = ["10.243.0.110"];
            aliases = [
              "nomic.retiolum"
              "cgit.nomic.retiolum"
            ];
          };
        };
        search = "retiolum";
      };
      rmdir = {
        cores = 1;
        dc = "tv"; #dc = "cac";
        nets = {
          retiolum = {
            addrs4 = ["10.243.113.224"];
            addrs6 = ["42:4522:25f8:36bb:8ccb:0150:231a:2af5"];
            aliases = [
              "rmdir.retiolum"
              "cgit.rmdir.retiolum"
            ];
          };
        };
        search = "retiolum";
      };
      wu = {
        cores = 4;
        # TODO wu is mobile, so dc means "home data center"
        dc = "tv"; #dc = "gg23";
        nets = {
          retiolum = {
            addrs4 = ["10.243.13.37"];
            aliases = [
              "wu.retiolum"
            ];
          };
        };
        search = "retiolum";
      };
    };
  };
}