2023-01-12 21:10:17 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
description = "Deployment for skynet";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
# gonna start off with a fairly modern base
|
2023-01-12 21:35:12 +00:00
|
|
|
nixpkgs.url = "nixpkgs/nixos-22.11";
|
2023-01-12 21:10:17 +00:00
|
|
|
|
|
|
|
# utility stuff
|
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
agenix.url = "github:ryantm/agenix";
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2023-01-15 19:48:54 +00:00
|
|
|
outputs = { self, nixpkgs, agenix, ... }: {
|
2023-01-15 17:45:21 +00:00
|
|
|
# https://github.com/zhaofengli/colmena
|
|
|
|
colmena = {
|
|
|
|
meta = {
|
|
|
|
nixpkgs = import nixpkgs {
|
|
|
|
system = "x86_64-linux";
|
2023-01-15 22:20:55 +00:00
|
|
|
overlays = [];
|
2023-01-15 17:45:21 +00:00
|
|
|
};
|
|
|
|
};
|
2023-01-12 23:58:35 +00:00
|
|
|
|
2023-01-15 17:45:21 +00:00
|
|
|
# installed for each machine
|
2023-01-15 22:20:55 +00:00
|
|
|
defaults = {
|
|
|
|
imports = [
|
|
|
|
./machines/_base.nix
|
|
|
|
# for the secrets
|
|
|
|
agenix.nixosModule
|
|
|
|
];
|
|
|
|
};
|
2023-01-13 00:33:28 +00:00
|
|
|
|
2023-01-15 19:22:12 +00:00
|
|
|
# firewall machiene
|
2023-01-17 20:50:17 +00:00
|
|
|
#agentjones = import ./machines/agentjones.nix;
|
2023-01-13 00:14:44 +00:00
|
|
|
|
2023-01-17 21:11:13 +00:00
|
|
|
/* TODO:
|
|
|
|
vm host
|
|
|
|
jarvis.skynet.ie
|
|
|
|
193.1.99.73
|
2023-01-17 21:53:39 +00:00
|
|
|
172.20.20.2
|
2023-01-17 21:11:13 +00:00
|
|
|
ports
|
|
|
|
22, 80
|
|
|
|
none
|
|
|
|
|
|
|
|
DNS
|
2023-01-17 21:53:39 +00:00
|
|
|
vendetta.skynet.ie
|
2023-01-17 21:11:13 +00:00
|
|
|
ns1.skynet.ie
|
|
|
|
193.1.99.120
|
2023-01-17 21:53:39 +00:00
|
|
|
172.20.20.3
|
2023-01-17 21:11:13 +00:00
|
|
|
Ports
|
|
|
|
22, 53 (UDP)
|
|
|
|
53 (UDP)
|
|
|
|
|
|
|
|
Wireguard
|
|
|
|
ash.skynet.ie Ash is a robot spy from Alien https://en.wikipedia.org/wiki/Ash_(Alien) we need someone to get us into teh network
|
|
|
|
193.1.99.75
|
2023-01-17 21:53:39 +00:00
|
|
|
172.20.20.4
|
2023-01-17 21:11:13 +00:00
|
|
|
Ports
|
|
|
|
22, 51820 (UDP)
|
|
|
|
51820 (UDP)
|
|
|
|
|
|
|
|
Icecase
|
|
|
|
stream.skynet.ie
|
|
|
|
193.1.99.111
|
2023-01-17 21:53:39 +00:00
|
|
|
172.20.20.5
|
2023-01-17 21:11:13 +00:00
|
|
|
Ports
|
|
|
|
22, 80, 443, 8000
|
|
|
|
80, 443, 8000
|
|
|
|
|
|
|
|
Minecraft
|
|
|
|
minecraft.games.skynet.ie
|
|
|
|
193.1.99.112
|
2023-01-17 21:53:39 +00:00
|
|
|
172.20.20.6
|
2023-01-17 21:11:13 +00:00
|
|
|
Ports
|
|
|
|
22, 80, 443, 25564, 25565, 25575
|
|
|
|
80, 443, 25564, 25565, 25575
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2023-01-15 19:48:54 +00:00
|
|
|
#test02 = import ./machines/test02.nix;
|
2023-01-15 15:10:40 +00:00
|
|
|
|
2023-01-15 17:45:21 +00:00
|
|
|
};
|
2023-01-12 21:10:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|