stockholm/krebs/3modules/shared/default.nix

79 lines
2.3 KiB
Nix
Raw Normal View History

2016-02-14 15:43:44 +00:00
{ config, ... }:
2015-10-25 13:07:51 +00:00
2016-02-14 15:43:44 +00:00
with config.krebs.lib;
2015-11-13 12:05:19 +00:00
let
2016-02-14 15:43:44 +00:00
testHosts = genAttrs [
2015-11-13 12:05:19 +00:00
"test-arch"
"test-centos6"
"test-centos7"
2015-12-30 01:45:47 +00:00
"test-all-krebs-modules"
2015-11-13 12:05:19 +00:00
] (name: {
owner = config.krebs.users.shared;
2015-11-13 12:05:19 +00:00
inherit name;
cores = 1;
nets = {
retiolum = {
ip4.addr = "10.243.111.111";
ip6.addr = "42:0:0:0:0:0:0:7357";
2015-11-13 12:05:19 +00:00
aliases = [
2016-02-21 20:51:11 +00:00
"test.r"
2015-11-13 12:05:19 +00:00
"test.retiolum"
];
tinc.pubkey = ''
-----BEGIN RSA PUBLIC KEY-----
MIIBCgKCAQEAy41YKF/wpHLnN370MSdnAo63QUW30aw+6O79cnaJyxoL6ZQkk4Nd
mrX2tBIfb2hhhgm4Jecy33WVymoEL7EiRZ6gshJaYwte51Jnrac6IFQyiRGMqHY5
TG/6IzzTOkeQrT1fw3Yfh0NRfqLBZLr0nAFoqgzIVRxvy+QO1gCU2UDKkQ/y5df1
K+YsMipxU08dsOkPkmLdC/+vDaZiEdYljIS3Omd+ED5JmLM3MSs/ZPQ8xjkjEAy8
QqD9/67bDoeXyg1ZxED2n0+aRKtU/CK/66Li//yev6yv38OQSEM4t/V0dr9sjLcY
VIdkxKf96F9r3vcDf/9xw2HrqVoy+D5XYQIDAQAB
-----END RSA PUBLIC KEY-----
'';
};
};
});
in {
hosts = {
2015-10-25 13:07:51 +00:00
wolf = {
owner = config.krebs.users.shared;
2015-10-25 13:07:51 +00:00
nets = {
2015-11-17 21:15:07 +00:00
shack = {
ip4.addr = "10.42.2.150" ;
2015-11-17 21:15:07 +00:00
aliases = [
"wolf.shack"
"graphite.shack"
"acng.shack"
"drivedroid.shack"
];
};
2015-10-25 13:07:51 +00:00
retiolum = {
ip4.addr = "10.243.77.1";
ip6.addr = "42:0:0:0:0:0:77:1";
2015-10-25 13:07:51 +00:00
aliases = [
"wolf.retiolum"
2016-02-04 01:48:28 +00:00
"cgit.wolf.retiolum"
2015-10-25 13:07:51 +00:00
];
tinc.pubkey = ''
-----BEGIN RSA PUBLIC KEY-----
MIIBCgKCAQEAzpXyEATt8+ElxPq650/fkboEC9RvTWqN6UIAl/R4Zu+uDhAZ2ekb
HBjoSbRxu/0w2I37nwWUhEOemxGm4PXCgWrtO0jeRF4nVNYu3ZBppA3vuVALUWq7
apxRUEL9FdsWQlXGo4PVd20dGaDTi8M/Ggo755MStVTY0rRLluxyPq6VAa015sNg
4NOFuWm0NDn4e+qrahTCTiSjbCU8rWixm0GktV40kdg0QAiFbEcRhuXF1s9/yojk
7JT/nFg6LELjWUSSNZnioj5oSfVbThDRelIld9VaAKBAZZ5/zy6T2XSeDfoepytH
8aw6itEuTCy1M1DTiTG+12SPPw+ubG+NqQIDAQAB
-----END RSA PUBLIC KEY-----
'';
};
};
ssh.privkey.path = <secrets/ssh.id_ed25519>;
ssh.pubkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKYMXMWZIK0jjnZDM9INiYAKcwjXs2241vew54K8veCR";
};
2015-11-13 12:05:19 +00:00
} // testHosts;
users = {
2015-10-25 13:07:51 +00:00
shared = {
mail = "spam@krebsco.de";
pubkey = "lol"; # TODO krebs.users.shared.pubkey should be unnecessary
};
};
}