nixos/machines/vigil.nix

50 lines
727 B
Nix
Raw Normal View History

2023-01-25 11:48:44 +00:00
/*
Name: https://masseffect.fandom.com/wiki/Vigil
Why: Counterpart to Vendetta
Type: VM
Hardware: -
From: 2023
Role: DNS Server
Notes:
2023-01-25 11:48:44 +00:00
*/
{
pkgs,
lib,
nodes,
...
}: let
name = "vigil";
ip_pub = "193.1.99.109";
hostname = "${name}.skynet.ie";
host = {
ip = ip_pub;
name = name;
hostname = hostname;
};
2023-01-25 11:48:44 +00:00
in {
imports = [
];
deployment = {
targetHost = ip_pub;
2023-01-25 11:48:44 +00:00
targetPort = 22;
targetUser = null;
2023-04-20 13:09:36 +00:00
tags = ["active-dns" "dns"];
2023-01-25 11:48:44 +00:00
};
services.skynet = {
host = host;
backup.enable = true;
dns = {
server = {
enable = true;
# secondary dns server (ns2)
primary = false;
ip = ip_pub;
};
};
2023-01-25 11:48:44 +00:00
};
}