2018-06-09 00:41:23 +00:00
|
|
|
{ config, pkgs, lib, ... }:
|
2019-02-07 21:45:50 +00:00
|
|
|
|
2018-06-09 00:41:23 +00:00
|
|
|
with lib;
|
2019-02-07 21:45:50 +00:00
|
|
|
|
2018-06-09 00:41:23 +00:00
|
|
|
{
|
2019-02-07 21:45:50 +00:00
|
|
|
|
|
|
|
imports = [ ./secret ];
|
|
|
|
|
|
|
|
config = {
|
|
|
|
nixpkgs.overlays = [ (self: super: {
|
|
|
|
unstable = import (builtins.fetchGit { url = "https://github.com/NixOS/nixpkgs-channels"; ref = "nixos-unstable";}) {};
|
|
|
|
})];
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
options = {
|
|
|
|
m-0.private = mkOption {
|
|
|
|
default = {};
|
|
|
|
type = types.attrs;
|
|
|
|
};
|
|
|
|
m-0.prefix = mkOption {
|
|
|
|
default = "2a02:c207:3002:7584";
|
|
|
|
type = types.str;
|
|
|
|
};
|
|
|
|
m-0.hosts = mkOption {
|
|
|
|
type = types.attrs;
|
|
|
|
default = let
|
|
|
|
p = config.m-0.prefix;
|
|
|
|
hera-p = "${p}::3";
|
|
|
|
apollo-p = "${p}::1";
|
|
|
|
wg-p = "${p}::100";
|
2019-02-24 23:31:53 +00:00
|
|
|
v4-p = "10.0.0";
|
2019-02-07 21:45:50 +00:00
|
|
|
in rec {
|
2019-02-24 23:31:53 +00:00
|
|
|
hera = "${p}::1";
|
|
|
|
|
|
|
|
hera-v4 = "213.136.94.190";
|
|
|
|
|
2019-02-07 21:45:50 +00:00
|
|
|
hera-wg = "${wg-p}:1";
|
|
|
|
apollo-wg = "${wg-p}:2";
|
|
|
|
|
|
|
|
hera-intern = "${hera-p}:1";
|
|
|
|
git = "${hera-p}:2";
|
|
|
|
borg = "${hera-p}:3";
|
|
|
|
dav = "${hera-p}:5";
|
|
|
|
blog = "${hera-p}:6";
|
|
|
|
chor = "${hera-p}:7";
|
|
|
|
matrix = "${hera-p}:8";
|
2019-02-22 00:45:45 +00:00
|
|
|
cloud = "${hera-p}:9";
|
|
|
|
web = "${hera-p}:a";
|
2019-02-24 23:31:53 +00:00
|
|
|
mathechor-cloud = "${hera-p}:b";
|
2019-03-07 22:35:32 +00:00
|
|
|
monitoring = "${hera-p}:c";
|
2019-02-07 21:45:50 +00:00
|
|
|
|
|
|
|
apollo = apollo-wg;
|
2019-02-24 23:31:53 +00:00
|
|
|
|
|
|
|
hera-intern-v4 = "${v4-p}.1";
|
|
|
|
cloud-intern-v4 = "${v4-p}.2";
|
|
|
|
mathechor-cloud-intern-v4 = "${v4-p}.3";
|
2019-03-02 15:03:38 +00:00
|
|
|
matrix-intern-v4 = "${v4-p}.4";
|
2018-06-09 00:41:23 +00:00
|
|
|
};
|
|
|
|
};
|
2019-02-07 21:45:50 +00:00
|
|
|
};
|
|
|
|
|
2018-06-09 00:41:23 +00:00
|
|
|
}
|