aboutsummaryrefslogtreecommitdiff
path: root/machines/test2/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'machines/test2/default.nix')
-rw-r--r--machines/test2/default.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/machines/test2/default.nix b/machines/test2/default.nix
index 11af08d..9782600 100644
--- a/machines/test2/default.nix
+++ b/machines/test2/default.nix
@@ -1,6 +1,7 @@
{ config, lib, pkgs, ... }:
-{
+let endpoint = "140.82.37.154";
+in {
networking = {
domain = "vapor.systems";
hostName = "test2";
@@ -10,11 +11,11 @@
wireguard = {
enable = true;
+ inherit endpoint;
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 = {
@@ -22,8 +23,7 @@
};
_module.args.nixinate = {
- host = "140.82.37.154";
- sshUser = "audron";
+ host = endpoint;
buildOn = "remote";
substituteOnTarget = true;
hermetic = false;