2023-01-25 11:48:44 +00:00
|
|
|
{
|
|
|
|
description = "Deployment for skynet";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
# gonna start off with a fairly modern base
|
2023-08-07 01:07:35 +00:00
|
|
|
nixpkgs.url = "nixpkgs/nixos-unstable";
|
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-09-17 19:51:08 +00:00
|
|
|
alejandra = {
|
|
|
|
url = "github:kamadorueda/alejandra/3.0.0";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
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";
|
2023-06-18 21:49:31 +00:00
|
|
|
|
2023-08-06 18:00:02 +00:00
|
|
|
# account.skynet.ie
|
2023-09-17 19:51:08 +00:00
|
|
|
skynet_ldap_backend.url = "gitlab:compsoc1%2Fskynet%2Fldap/backend?host=gitlab.skynet.ie";
|
2023-07-30 14:05:20 +00:00
|
|
|
skynet_ldap_frontend.url = "gitlab:compsoc1%2Fskynet%2Fldap/frontend?host=gitlab.skynet.ie";
|
|
|
|
skynet_website.url = "gitlab:compsoc1%2Fskynet%2Fwebsite/2023?host=gitlab.skynet.ie";
|
|
|
|
skynet_website_2016.url = "gitlab:compsoc1%2Fskynet%2Fwebsite/2016?host=gitlab.skynet.ie";
|
2023-09-30 18:22:58 +00:00
|
|
|
skynet_website_renew.url = "gitlab:compsoc1%2Fskynet%2Fwebsite/alumni-renew?host=gitlab.skynet.ie";
|
2023-10-01 02:53:53 +00:00
|
|
|
skynet_website_games.url = "gitlab:compsoc1%2Fskynet%2Fwebsite/games.skynet.ie?host=gitlab.skynet.ie";
|
2023-08-28 17:01:34 +00:00
|
|
|
skynet_discord_bot.url = "gitlab:compsoc1%2Fskynet/discord-bot?host=gitlab.skynet.ie";
|
2023-09-30 23:06:29 +00:00
|
|
|
compsoc_public.url = "gitlab:compsoc1%2Fcompsoc/presentations?host=gitlab.skynet.ie";
|
2023-01-25 11:48:44 +00:00
|
|
|
};
|
|
|
|
|
2023-08-06 21:51:24 +00:00
|
|
|
nixConfig.bash-prompt-suffix = "[Skynet Dev] ";
|
|
|
|
|
2023-09-17 19:51:08 +00:00
|
|
|
outputs = {
|
|
|
|
self,
|
|
|
|
nixpkgs,
|
|
|
|
agenix,
|
|
|
|
alejandra,
|
|
|
|
...
|
|
|
|
} @ inputs: let
|
|
|
|
pkgs = nixpkgs.legacyPackages.x86_64-linux.pkgs;
|
|
|
|
in {
|
|
|
|
formatter.x86_64-linux = alejandra.defaultPackage."x86_64-linux";
|
2023-08-06 23:42:32 +00:00
|
|
|
|
2023-08-06 21:51:24 +00:00
|
|
|
devShells.x86_64-linux.default = pkgs.mkShell {
|
2023-08-06 23:42:32 +00:00
|
|
|
name = "Skynet build env";
|
2023-08-06 21:51:24 +00:00
|
|
|
nativeBuildInputs = [
|
2023-09-17 19:51:08 +00:00
|
|
|
pkgs.buildPackages.git
|
|
|
|
pkgs.buildPackages.colmena
|
|
|
|
pkgs.buildPackages.nmap
|
2023-08-06 21:51:24 +00:00
|
|
|
];
|
2023-09-17 19:51:08 +00:00
|
|
|
buildInputs = [agenix.packages.x86_64-linux.default];
|
2023-08-06 21:51:24 +00:00
|
|
|
shellHook = ''export EDITOR="${pkgs.nano}/bin/nano --nonewlines"'';
|
|
|
|
};
|
|
|
|
|
2023-01-25 11:48:44 +00:00
|
|
|
colmena = {
|
|
|
|
meta = {
|
|
|
|
nixpkgs = import nixpkgs {
|
2023-07-21 20:56:19 +00:00
|
|
|
system = "x86_64-linux";
|
2023-01-25 11:48:44 +00:00
|
|
|
overlays = [];
|
|
|
|
};
|
2023-07-21 20:27:01 +00:00
|
|
|
specialArgs = {
|
2023-07-21 20:56:19 +00:00
|
|
|
inherit inputs;
|
|
|
|
};
|
2023-01-25 11:48:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# installed for each machine
|
2023-09-17 19:51:08 +00:00
|
|
|
defaults = import ./machines/_base.nix;
|
2023-01-25 11:48:44 +00:00
|
|
|
|
|
|
|
# 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-07-21 20:56:19 +00:00
|
|
|
optimus = import ./machines/optimus.nix;
|
2023-01-25 11:48:44 +00:00
|
|
|
|
2023-06-14 20:53:48 +00:00
|
|
|
# LDAP host
|
2023-07-21 20:56:19 +00:00
|
|
|
kitt = import ./machines/kitt.nix;
|
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
|
2023-07-21 20:56:19 +00:00
|
|
|
gir = import ./machines/gir.nix;
|
2023-06-16 22:18:53 +00:00
|
|
|
|
2023-06-23 22:52:31 +00:00
|
|
|
# backup 1
|
|
|
|
neuromancer = import ./machines/neuromancer.nix;
|
|
|
|
|
2023-09-15 19:36:07 +00:00
|
|
|
# Skynet, user ssh access
|
2023-07-20 21:05:46 +00:00
|
|
|
skynet = import ./machines/skynet.nix;
|
|
|
|
|
2023-09-15 19:36:07 +00:00
|
|
|
# Main skynet sites
|
|
|
|
earth = import ./machines/earth.nix;
|
2023-01-25 11:48:44 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|