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-15 19:48:54 +00:00
|
|
|
agentjones = import ./machines/agentjones.nix;
|
2023-01-13 00:14:44 +00:00
|
|
|
|
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
|
|
|
};
|
|
|
|
|
|
|
|
}
|