2023-06-10 10:50:53 +00:00
|
|
|
{ config, lib, ... }: let
|
|
|
|
inherit (lib) flip mapAttrs optionalAttrs recursiveUpdate;
|
|
|
|
slib = import ../../lib/pure.nix { inherit lib; };
|
2023-03-26 20:18:06 +00:00
|
|
|
hostDefaults = hostName: host: flip recursiveUpdate host ({
|
2023-04-23 12:07:55 +00:00
|
|
|
owner = config.krebs.users.feliks;
|
2023-03-26 20:18:06 +00:00
|
|
|
ci = false;
|
|
|
|
external = true;
|
|
|
|
monitoring = false;
|
|
|
|
} // optionalAttrs (host.nets?retiolum) {
|
|
|
|
nets.retiolum.ip6.addr =
|
2023-06-10 10:50:53 +00:00
|
|
|
(slib.krebs.genipv6 "retiolum" "external" { inherit hostName; }).address;
|
2023-04-18 18:11:38 +00:00
|
|
|
} // optionalAttrs (host.nets?wiregrill) {
|
|
|
|
nets.wiregrill.ip6.addr =
|
2023-06-10 10:50:53 +00:00
|
|
|
(slib.krebs.genipv6 "wiregrill" "external" { inherit hostName; }).address;
|
2023-03-26 20:18:06 +00:00
|
|
|
});
|
2023-03-26 18:19:05 +00:00
|
|
|
in {
|
|
|
|
users.feliks = {
|
|
|
|
mail = "feliks@flipdot.org";
|
|
|
|
};
|
2023-03-26 20:18:06 +00:00
|
|
|
hosts = mapAttrs hostDefaults {
|
2023-03-26 18:19:05 +00:00
|
|
|
papawhakaaro = {
|
|
|
|
nets = {
|
|
|
|
retiolum = {
|
|
|
|
ip4.addr = "10.243.10.243";
|
2023-04-18 18:11:38 +00:00
|
|
|
aliases = [ "papawhakaaro.r" "tp.feliks.r" ];
|
2023-03-26 18:19:05 +00:00
|
|
|
tinc.pubkey = ''
|
|
|
|
-----BEGIN RSA PUBLIC KEY-----
|
2023-08-13 22:02:19 +00:00
|
|
|
MIICCgKCAgEApPx0Xa5tms6t9yOqrdBuz5JVheIqntIF4XK04gXMYr/lcqWj35Sj
|
|
|
|
jM0fObbB0MXz1Di0DsWT5ukVMpvRfespif2FsRfpUOBzVQymlcFfn7D4t2qUa0nH
|
|
|
|
AHuvoSqb2qV8YUIvVRNdnNSv1NWlbEpcsKXzg36O2ESdro64vSM5hAVw8Djo8Eoh
|
|
|
|
AGlZVi1tplVs+DPlsMjUqjCrGeq81V7SiLwaVc7adcx/cNvzDA23axkUosm/X2fN
|
|
|
|
Ug8UWXHt3SgH/BtTwWIpT48anIdPbkttH0d4ICzt0g3nX6+zmVhdzIjHWNsmjxaQ
|
|
|
|
qKn2DfC1TcYffE4k4E2yENwLoTkJn3U3cCowt7OTLfNvexRyFj5E/O1Aa1VdwX68
|
|
|
|
MTpF89Hv8SKUSMRsbyG/vFAoh/I88Y4lDis+TtBKPs1VLBtsQy1mZaIooSTslPf+
|
|
|
|
pcUDBBUsf2/SudwvbBC1XHl1YDnRFBZG74ApVIXeIo5G8Cfm4LasppYqPJ7YzTKp
|
|
|
|
6yoR9iKaXONTwQ3xhlBcfpMxObZTE1v8kF9sy3t9Pl8Px9f4PSbuQpp82MJrRJQC
|
|
|
|
FYTMkUh0PZwbw7vzqDLjeW715YWeNKW6PSFT0TtY8UTNNKFslhUfuBBLGyjsU+T3
|
|
|
|
9m9uNNhRxFoFmlKYziFzyEVWgMl67Eg0CQAulP0q9zv3d4367il6SK8CAwEAAQ==
|
2023-03-26 18:19:05 +00:00
|
|
|
-----END RSA PUBLIC KEY-----
|
|
|
|
'';
|
2023-08-13 22:02:19 +00:00
|
|
|
tinc.pubkey_ed25519 = "8g19LVFwgtdpFPcqTM/pdCzWhy3ins9+LPjHIjwNFvA";
|
2023-03-26 18:19:05 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
iti = {
|
|
|
|
nets = {
|
|
|
|
retiolum = {
|
|
|
|
ip4.addr = "10.243.10.244";
|
2023-04-18 18:11:38 +00:00
|
|
|
aliases = [ "iti.r" "ltd.feliks.r" ];
|
2023-03-26 18:19:05 +00:00
|
|
|
tinc.pubkey = ''
|
|
|
|
-----BEGIN RSA PUBLIC KEY-----
|
|
|
|
MI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rill = {
|
2023-04-18 21:07:48 +00:00
|
|
|
ip4.addr = "10.244.10.246";
|
2023-08-02 10:37:18 +00:00
|
|
|
aliases = [
|
|
|
|
"ahuatangata.w"
|
|
|
|
"ndrd.feliks.w"
|
|
|
|
];
|
2023-04-18 20:46:39 +00:00
|
|
|
wireguard.pubkey = "QPDGBEYJ1znqUdjy6JWZJ+cqPMcU67dHlOX5beTM6TA=";
|
2023-04-18 18:11:38 +00:00
|
|
|
};
|
|
|
|
};
|
2023-03-26 18:19:05 +00:00
|
|
|
};
|
|
|
|
}
|