diff options
author | KokaKiwi <kokakiwi+git@kokakiwi.net> | 2024-05-15 11:50:49 +0200 |
---|---|---|
committer | KokaKiwi <kokakiwi+git@kokakiwi.net> | 2024-05-15 11:50:49 +0200 |
commit | a513690004a27b4330d810def3b37772e5e6e8b2 (patch) | |
tree | 126b8414dee512d2658a43decbea63c730a1c414 /cluster/prod | |
parent | f55891ba211abcc6088276d52b674e4ad673291e (diff) | |
download | nixcfg-a513690004a27b4330d810def3b37772e5e6e8b2.tar.gz nixcfg-a513690004a27b4330d810def3b37772e5e6e8b2.zip |
cluster(prod): Add dathomir site and onion node
Diffstat (limited to 'cluster/prod')
-rw-r--r-- | cluster/prod/cluster.nix | 6 | ||||
-rw-r--r-- | cluster/prod/known_hosts | 1 | ||||
-rw-r--r-- | cluster/prod/node/onion.nix | 10 | ||||
l--------- | cluster/prod/node/onion.site.nix | 1 | ||||
-rw-r--r-- | cluster/prod/site/dathomir.nix | 7 | ||||
-rw-r--r-- | cluster/prod/ssh_config | 2 |
6 files changed, 27 insertions, 0 deletions
diff --git a/cluster/prod/cluster.nix b/cluster/prod/cluster.nix index 4b9b41a..c4f5306 100644 --- a/cluster/prod/cluster.nix +++ b/cluster/prod/cluster.nix @@ -75,6 +75,12 @@ address = "10.83.4.2"; endpoint = "82.65.41.110:33742"; }; + "onion" = { + siteName = "dathomir"; + publicKey = "gpeqalqAUaYlMuebv3glQeZyE64+OpkyIHFhfStJQA4="; + address = "10.83.5.1"; + endpoint = "82.64.238.84:33740"; + }; }; # Pin Nomad version diff --git a/cluster/prod/known_hosts b/cluster/prod/known_hosts index 1c80749..a4a7d7b 100644 --- a/cluster/prod/known_hosts +++ b/cluster/prod/known_hosts @@ -9,3 +9,4 @@ concombre.machine.deuxfleurs.fr ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL3N0QOFNGkC courgette.machine.deuxfleurs.fr ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPCXJeo6yeQeTN7D7OZwLd8zbyU1jWywlhQ29yyk7x+G abricot.machine.deuxfleurs.fr ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPhHUQtc5lukPMFkiWf/sTgaUpwNFXHCJoQKu4ooRFy+ ananas.machine.deuxfleurs.fr ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHs0zAyBy70oyV56qaMaMAKR7VjEDnsm5LEyZJbM95BL +onion.machine.deuxfleurs.fr ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINjBQ67fxwuDDzRPveTko/Sgf0cev3tIvlr3CfAmhF0C diff --git a/cluster/prod/node/onion.nix b/cluster/prod/node/onion.nix new file mode 100644 index 0000000..0e3c719 --- /dev/null +++ b/cluster/prod/node/onion.nix @@ -0,0 +1,10 @@ +{ ... }: +{ + boot.loader.systemd-boot.enable = true; + boot.loader.timeout = 20; + boot.loader.efi.canTouchEfiVariables = true; + + deuxfleurs.hostName = "onion"; + deuxfleurs.staticIPv4.address = "192.168.1.34"; + deuxfleurs.staticIPv6.address = "2a01:e0a:5e4:1d0:223:24ff:feb0:e866"; +} diff --git a/cluster/prod/node/onion.site.nix b/cluster/prod/node/onion.site.nix new file mode 120000 index 0000000..5e41391 --- /dev/null +++ b/cluster/prod/node/onion.site.nix @@ -0,0 +1 @@ +../site/dathomir.nix
\ No newline at end of file diff --git a/cluster/prod/site/dathomir.nix b/cluster/prod/site/dathomir.nix new file mode 100644 index 0000000..87d9b56 --- /dev/null +++ b/cluster/prod/site/dathomir.nix @@ -0,0 +1,7 @@ +{ ... }: +{ + deuxfleurs.siteName = "dathomir"; + deuxfleurs.cnameTarget = "dathomir.site.deuxfleurs.fr"; + deuxfleurs.publicIPv4 = "82.64.238.84"; + deuxfleurs.staticIPv4.defaultGateway = "192.168.1.1"; +} diff --git a/cluster/prod/ssh_config b/cluster/prod/ssh_config index 37b8953..c056a22 100644 --- a/cluster/prod/ssh_config +++ b/cluster/prod/ssh_config @@ -33,3 +33,5 @@ Host abricot Host ananas HostName ananas.machine.deuxfleurs.fr +Host onion + HostName onion.machine.deuxfleurs.fr |