nixos/machines/kitt.nix

63 lines
1.2 KiB
Nix
Raw Normal View History

2023-05-16 21:23:04 +00:00
/*
Name: https://en.wikipedia.org/wiki/KITT
Why: Kitt used to have this role before (as well as email and dns)
Type: VM
Hardware: -
From: 2023
Role: LDAP Server
Notes:
2023-05-16 21:23:04 +00:00
*/
{
2024-05-23 01:10:16 +00:00
config,
pkgs,
lib,
nodes,
...
}: let
2023-05-16 21:23:04 +00:00
# name of the server, sets teh hostname and record for it
name = "kitt";
ip_pub = "193.1.99.74";
hostname = "${name}.skynet.ie";
host = {
ip = ip_pub;
name = name;
hostname = hostname;
};
2023-05-16 21:23:04 +00:00
in {
imports = [
../applications/ldap/server.nix
../applications/ldap/backend.nix
2023-08-28 17:01:34 +00:00
../applications/discord.nix
../applications/bitwarden/vaultwarden.nix
../applications/bitwarden/bitwarden_sync.nix
2024-05-23 01:10:16 +00:00
../applications/grafana.nix
../applications/prometheus.nix
2023-05-16 21:23:04 +00:00
];
deployment = {
targetHost = hostname;
targetPort = 22;
targetUser = null;
tags = ["active-core"];
2023-05-16 21:23:04 +00:00
};
services.skynet = {
host = host;
backup.enable = true;
2023-07-15 14:05:57 +00:00
# ldap setup
ldap.enable = true;
ldap_backend.enable = true;
# private member services
discord_bot.enable = true;
# committee/admin services
vaultwarden.enable = true;
prometheus.server.enable = true;
grafana.enable = true;
2024-05-23 01:10:16 +00:00
};
2023-05-16 21:23:04 +00:00
}