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";
|
2023-05-19 18:15:22 +00:00
|
|
|
arion.url = "github:hercules-ci/arion";
|
2023-01-25 11:48:44 +00:00
|
|
|
|
2023-06-16 22:18:53 +00:00
|
|
|
# email
|
2023-07-15 12:22:32 +00:00
|
|
|
# simple-nixos-mailserver.url = "gitlab:simple-nixos-mailserver/nixos-mailserver/nixos-23.05";
|
|
|
|
simple-nixos-mailserver.url = "gitlab:simple-nixos-mailserver/nixos-mailserver";
|
2023-06-18 21:49:31 +00:00
|
|
|
|
2023-06-21 21:12:06 +00:00
|
|
|
# sso.skynet.ie
|
2023-06-18 21:49:31 +00:00
|
|
|
skynet_ldap_backend.url = "git+https://gitlab.skynet.ie/compsoc/skynet/ldap/backend.git";
|
2023-06-21 21:12:06 +00:00
|
|
|
skynet_ldap_frontend.url = "git+https://gitlab.skynet.ie/compsoc/skynet/ldap/frontend.git";
|
2023-01-25 11:48:44 +00:00
|
|
|
};
|
|
|
|
|
2023-06-18 21:49:31 +00:00
|
|
|
outputs = { self, nixpkgs,
|
|
|
|
# these are the nixos modules from otehr projects
|
|
|
|
agenix,
|
|
|
|
arion,
|
|
|
|
simple-nixos-mailserver,
|
|
|
|
skynet_ldap_backend,
|
2023-06-21 21:12:06 +00:00
|
|
|
skynet_ldap_frontend,
|
2023-06-18 21:49:31 +00:00
|
|
|
...
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
system = "x86_64-linux";
|
|
|
|
in {
|
2023-01-25 11:48:44 +00:00
|
|
|
# https://github.com/zhaofengli/colmena
|
2023-05-19 17:28:35 +00:00
|
|
|
# colmena apply --on agentjones
|
|
|
|
# colmena apply --on @dns
|
2023-06-18 21:49:31 +00:00
|
|
|
# nix flake lock --update-input skynet_ldap_backend
|
2023-01-25 11:48:44 +00:00
|
|
|
colmena = {
|
|
|
|
meta = {
|
|
|
|
nixpkgs = import nixpkgs {
|
2023-06-18 21:49:31 +00:00
|
|
|
system = system;
|
2023-01-25 11:48:44 +00:00
|
|
|
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;
|
|
|
|
|
2023-07-15 14:54:42 +00:00
|
|
|
# ns2
|
2023-01-25 11:48:44 +00:00
|
|
|
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
|
2023-06-18 21:49:31 +00:00
|
|
|
kitt.imports = [
|
|
|
|
./machines/kitt.nix
|
|
|
|
skynet_ldap_backend.nixosModule.${system}
|
|
|
|
];
|
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;
|
|
|
|
|
2023-06-16 22:18:53 +00:00
|
|
|
# email
|
|
|
|
gir.imports = [ ./machines/gir.nix simple-nixos-mailserver.nixosModule];
|
|
|
|
|
2023-06-23 22:52:31 +00:00
|
|
|
# backup 1
|
|
|
|
neuromancer = import ./machines/neuromancer.nix;
|
|
|
|
|
2023-01-25 11:48:44 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|