From f6c4576b6c8b45f1389498e4c8437d659a780a17 Mon Sep 17 00:00:00 2001 From: Adrien Date: Wed, 15 Mar 2023 17:30:35 +0100 Subject: added forgotten new files for scorpio/abricot --- cluster/prod/node/abricot.nix | 19 +++++++++++++++++++ cluster/prod/node/abricot.site.nix | 1 + cluster/prod/site/scorpio.nix | 14 ++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 cluster/prod/node/abricot.nix create mode 120000 cluster/prod/node/abricot.site.nix create mode 100644 cluster/prod/site/scorpio.nix diff --git a/cluster/prod/node/abricot.nix b/cluster/prod/node/abricot.nix new file mode 100644 index 0000000..b092fb2 --- /dev/null +++ b/cluster/prod/node/abricot.nix @@ -0,0 +1,19 @@ +# Configuration file local to this node + +{ config, pkgs, ... }: + +{ + # Use the systemd-boot EFI boot loader. + boot.loader.systemd-boot.enable = true; + boot.loader.timeout = 20; + boot.loader.efi.canTouchEfiVariables = true; + + networking.hostName = "abricot"; + + deuxfleurs.network_interface = "eno1"; + deuxfleurs.lan_ip = "192.168.1.41"; + deuxfleurs.ipv6 = "2a01:e0a:e4:2dd0::41"; + + deuxfleurs.cluster_ip = "10.83.4.1"; + deuxfleurs.is_raft_server = false; +} diff --git a/cluster/prod/node/abricot.site.nix b/cluster/prod/node/abricot.site.nix new file mode 120000 index 0000000..a549793 --- /dev/null +++ b/cluster/prod/node/abricot.site.nix @@ -0,0 +1 @@ +../site/scorpio.nix \ No newline at end of file diff --git a/cluster/prod/site/scorpio.nix b/cluster/prod/site/scorpio.nix new file mode 100644 index 0000000..b58e25c --- /dev/null +++ b/cluster/prod/site/scorpio.nix @@ -0,0 +1,14 @@ +{ config, pkgs, ... }: + +{ + deuxfleurs.site_name = "scorpio"; + deuxfleurs.lan_default_gateway = "192.168.1.254"; + deuxfleurs.ipv6_default_gateway = "2a01:e0a:e4:2dd0::1"; + deuxfleurs.lan_ip_prefix_length = 24; + deuxfleurs.ipv6_prefix_length = 64; + deuxfleurs.nameservers = [ "192.168.1.254" ]; + deuxfleurs.cname_target = "scorpio.site.deuxfleurs.fr."; + deuxfleurs.public_ipv4 = "82.65.41.110"; + + networking.firewall.allowedTCPPorts = [ 80 443 ]; +} -- cgit v1.2.3