aboutsummaryrefslogtreecommitdiff
path: root/machines/test2/default.nix
blob: 978260093adec1f6db1954df87f3dacf26d258a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ config, lib, pkgs, ... }:

let endpoint = "140.82.37.154";
in {
  networking = {
    domain = "vapor.systems";
    hostName = "test2";
  };

  pubKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJbOAlwYaK4yd7Y2AMZtIFjqY5ihAaVvNm3nduG17dPo";

  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" ];
  };

  kubernetes = {
    role = "agent";
  };

  _module.args.nixinate = {
    host = endpoint;
    buildOn = "remote";
    substituteOnTarget = true;
    hermetic = false;
  };
}