1
0
Fork 0
nixos-config/common/default.nix

40 lines
861 B
Nix
Raw Normal View History

2018-06-09 00:41:23 +00:00
{ config, pkgs, lib, ... }:
with lib;
{
imports = [ ./secret ];
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;
2018-07-27 12:57:20 +00:00
default = let
p = config.m-0.prefix;
hera-p = "${p}::3";
apollo-p = "${p}::1";
wg-p = "${p}::100";
2018-07-27 12:59:57 +00:00
in rec {
hera-wg = "${wg-p}:1";
apollo-wg = "${wg-p}:2";
2018-07-27 12:57:20 +00:00
2018-07-27 11:28:35 +00:00
hera-v4 = "213.136.94.190";
2018-06-09 00:41:23 +00:00
hera = "${p}::1";
2018-07-27 12:57:20 +00:00
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";
apollo = apollo-wg;
2018-06-09 00:41:23 +00:00
};
};
};
}