diff options
| author | Max Audron <audron@cocaine.farm> | 2023-10-02 14:05:36 +0200 |
|---|---|---|
| committer | Max Audron <audron@cocaine.farm> | 2023-10-02 14:05:36 +0200 |
| commit | d53ddb8da1d41fbfa3935dcc13bf6d234f46d0c2 (patch) | |
| tree | 19c4a85464c2b2d38a1d8e65f5a36473cba7b02d /machines/sin01/default.nix | |
| parent | merge diverged changes (diff) | |
add and update servers
Diffstat (limited to 'machines/sin01/default.nix')
| -rw-r--r-- | machines/sin01/default.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/machines/sin01/default.nix b/machines/sin01/default.nix new file mode 100644 index 0000000..267981f --- /dev/null +++ b/machines/sin01/default.nix @@ -0,0 +1,37 @@ +{ config, lib, pkgs, ... }: + +let endpoint = "139.180.191.169"; +in +{ + networking = { + domain = "ns.vapor.systems"; + hostName = "sin01"; + }; + + pubKey = + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJG9bqNAbHaWgiRgvNMntyW9IeLedXCF11KGB0iQsrJH"; + + kubernetes = { + role = "agent"; + externalIP = { + v4 = endpoint; + v6 = "2001:19f0:4400:7d6a:5400:3ff:fed5:f26d"; + }; + }; + + wireguard = { + enable = true; + inherit endpoint; + v4 = { address = "10.10.0.5"; }; + v6 = { address = "5"; }; + publicKey = "0/g1/0fLOvMDKC87hu9fBDA38S8lzO7qJ+akLGTT/lc="; + allowedIPs = [ "10.102.4.0/24" "fd15:3d8c:d429:102:400::/72" ]; + }; + + _module.args.nixinate = { + host = endpoint; + buildOn = "local"; + substituteOnTarget = true; + hermetic = true; + }; +} |
