nixos/flake.nix

70 lines
1.6 KiB
Nix
Raw Normal View History

2023-01-25 11:48:44 +00:00
{
description = "Deployment for skynet";
inputs = {
# gonna start off with a fairly modern base
2023-06-17 20:35:57 +00:00
nixpkgs.url = "nixpkgs/nixos-23.05";
2023-01-25 11:48:44 +00:00
# utility stuff
flake-utils.url = "github:numtide/flake-utils";
agenix.url = "github:ryantm/agenix";
arion.url = "github:hercules-ci/arion";
2023-01-25 11:48:44 +00:00
# email
simple-nixos-mailserver.url = "gitlab:mweinelt/nixos-mailserver/ldap-support";
2023-01-25 11:48:44 +00:00
};
outputs = { self, nixpkgs, agenix, arion, simple-nixos-mailserver, ... }: {
2023-01-25 11:48:44 +00:00
# https://github.com/zhaofengli/colmena
# colmena apply --on agentjones
# colmena apply --on @dns
2023-01-25 11:48:44 +00:00
colmena = {
meta = {
nixpkgs = import nixpkgs {
system = "x86_64-linux";
overlays = [];
};
};
# installed for each machine
defaults = {
imports = [
./machines/_base.nix
# for the secrets
agenix.nixosModule
];
};
# firewall machiene
agentjones = import ./machines/agentjones.nix;
# ns1
vendetta = import ./machines/vendetta.nix;
# ns1
vigil = import ./machines/vigil.nix;
# icecast - ULFM
galatea = import ./machines/galatea.nix;
# Game host
2023-06-14 20:53:48 +00:00
optimus.imports = [./machines/optimus.nix arion.nixosModules.arion];
2023-01-25 11:48:44 +00:00
2023-06-14 20:53:48 +00:00
# LDAP host
kitt.imports = [./machines/kitt.nix arion.nixosModules.arion];
2023-06-14 19:45:34 +00:00
2023-06-15 01:47:56 +00:00
# Gitlab
glados = import ./machines/glados.nix;
2023-06-17 18:37:06 +00:00
# Gitlab runners
wheatly = import ./machines/wheatly.nix;
# email
gir.imports = [ ./machines/gir.nix simple-nixos-mailserver.nixosModule];
2023-01-25 11:48:44 +00:00
};
};
}