aboutsummaryrefslogtreecommitdiff
path: root/machines/test2
diff options
context:
space:
mode:
authorMax Audron <audron@cocaine.farm>2023-09-27 12:49:16 +0200
committerMax Audron <audron@cocaine.farm>2023-09-27 12:49:16 +0200
commit7f30f1c9d8b6b885081ad81e3fa3c6849b3f3548 (patch)
tree857bde9b44f25cb321b6d4831e6db99fba3888cb /machines/test2
parentadd secrets submodule (diff)
test kubernetes deployment
Diffstat (limited to 'machines/test2')
-rw-r--r--machines/test2/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/machines/test2/default.nix b/machines/test2/default.nix
new file mode 100644
index 0000000..11af08d
--- /dev/null
+++ b/machines/test2/default.nix
@@ -0,0 +1,31 @@
+{ config, lib, pkgs, ... }:
+
+{
+ networking = {
+ domain = "vapor.systems";
+ hostName = "test2";
+ };
+
+ pubKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJbOAlwYaK4yd7Y2AMZtIFjqY5ihAaVvNm3nduG17dPo";
+
+ wireguard = {
+ enable = true;
+ v4 = { address = "10.10.0.2"; };
+ v6 = { address = "2"; };
+ publicKey = "oV+exEWmcU3UHS6iSK4rnPZg57D0R84EVJKZyVmEdUc=";
+ allowedIPs = [ "10.102.5.0/24" "fd15:3d8c:d429:102:500::/72" ];
+ endpoint = "140.82.37.154";
+ };
+
+ kubernetes = {
+ role = "agent";
+ };
+
+ _module.args.nixinate = {
+ host = "140.82.37.154";
+ sshUser = "audron";
+ buildOn = "remote";
+ substituteOnTarget = true;
+ hermetic = false;
+ };
+}