nixos/flake.nix

100 lines
2.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
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";
arion.url = "github:hercules-ci/arion";
2023-01-25 11:48:44 +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";
# account.skynet.ie
skynet_ldap_backend.url = "gitlab:compsoc1%2Fskynet%2Fldap/backend?host=gitlab.skynet.ie";
skynet_ldap_frontend.url = "gitlab:compsoc1%2Fskynet%2Fldap/frontend?host=gitlab.skynet.ie";
2023-07-21 20:27:01 +00:00
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-08-28 17:01:34 +00:00
skynet_discord_bot.url = "gitlab:compsoc1%2Fskynet/discord-bot?host=gitlab.skynet.ie";
2023-01-25 11:48:44 +00:00
};
nixConfig.bash-prompt-suffix = "[Skynet Dev] ";
outputs = { self, nixpkgs, agenix, ... } @inputs:
let
pkgs = nixpkgs.legacyPackages.x86_64-linux.pkgs;
in {
devShells.x86_64-linux.default = pkgs.mkShell {
name = "Skynet build env";
nativeBuildInputs = [
pkgs.buildPackages.git
pkgs.buildPackages.colmena
pkgs.buildPackages.nmap
];
buildInputs = [ agenix.packages.x86_64-linux.default ];
shellHook = ''export EDITOR="${pkgs.nano}/bin/nano --nonewlines"'';
};
2023-01-25 11:48:44 +00:00
colmena = {
meta = {
nixpkgs = import nixpkgs {
system = "x86_64-linux";
2023-01-25 11:48:44 +00:00
overlays = [];
};
2023-07-21 20:27:01 +00:00
specialArgs = {
inherit inputs;
};
2023-01-25 11:48:44 +00:00
};
# installed for each machine
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;
# ns2
2023-01-25 11:48:44 +00:00
vigil = import ./machines/vigil.nix;
# icecast - ULFM
galatea = import ./machines/galatea.nix;
# Game host
optimus = import ./machines/optimus.nix;
2023-01-25 11:48:44 +00:00
2023-06-14 20:53:48 +00:00
# LDAP host
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;
# email
gir = import ./machines/gir.nix;
# backup 1
neuromancer = import ./machines/neuromancer.nix;
# Skynet, user ssh access
2023-07-20 21:05:46 +00:00
skynet = import ./machines/skynet.nix;
# Main skynet sites
earth = import ./machines/earth.nix;
2023-01-25 11:48:44 +00:00
};
};
}