aboutsummaryrefslogtreecommitdiff
path: root/node
diff options
context:
space:
mode:
Diffstat (limited to 'node')
-rw-r--r--node/carcajou.nix38
l---------node/carcajou.site.nix1
-rw-r--r--node/cariacou.nix34
l---------node/cariacou.site.nix1
-rw-r--r--node/caribou.nix38
l---------node/caribou.site.nix1
-rw-r--r--node/spoutnik.nix68
l---------node/spoutnik.site.nix1
8 files changed, 0 insertions, 182 deletions
diff --git a/node/carcajou.nix b/node/carcajou.nix
deleted file mode 100644
index 59c2008..0000000
--- a/node/carcajou.nix
+++ /dev/null
@@ -1,38 +0,0 @@
-# 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 = "carcajou";
-
- networking.interfaces.eno1.useDHCP = false;
- networking.interfaces.eno1.ipv4.addresses = [
- {
- address = "192.168.1.22";
- prefixLength = 24;
- }
- ];
- networking.interfaces.eno1.ipv6.addresses = [
- {
- address = "2a01:e0a:c:a720::22";
- prefixLength = 64;
- }
- ];
-
- networking.wireguard.interfaces.wg0 = {
- ips = [ "10.42.0.22/16" ];
- listenPort = 33722;
- };
-
- # Enable netdata monitoring
- services.netdata.enable = true;
-
- # Activate as Nomad and Consul server node
- services.nomad.settings.server.enabled = true;
- services.consul.extraConfig.server = true;
-}
diff --git a/node/carcajou.site.nix b/node/carcajou.site.nix
deleted file mode 120000
index 04ee36c..0000000
--- a/node/carcajou.site.nix
+++ /dev/null
@@ -1 +0,0 @@
-../site/neptune.nix \ No newline at end of file
diff --git a/node/cariacou.nix b/node/cariacou.nix
deleted file mode 100644
index 7b57fe2..0000000
--- a/node/cariacou.nix
+++ /dev/null
@@ -1,34 +0,0 @@
-# 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 = "cariacou";
-
- networking.interfaces.eno1.useDHCP = false;
- networking.interfaces.eno1.ipv4.addresses = [
- {
- address = "192.168.1.21";
- prefixLength = 24;
- }
- ];
- networking.interfaces.eno1.ipv6.addresses = [
- {
- address = "2a01:e0a:c:a720::21";
- prefixLength = 64;
- }
- ];
-
- networking.wireguard.interfaces.wg0 = {
- ips = [ "10.42.0.21/16" ];
- listenPort = 33721;
- };
-
- # Enable netdata monitoring
- services.netdata.enable = true;
-}
diff --git a/node/cariacou.site.nix b/node/cariacou.site.nix
deleted file mode 120000
index 04ee36c..0000000
--- a/node/cariacou.site.nix
+++ /dev/null
@@ -1 +0,0 @@
-../site/neptune.nix \ No newline at end of file
diff --git a/node/caribou.nix b/node/caribou.nix
deleted file mode 100644
index dc5e917..0000000
--- a/node/caribou.nix
+++ /dev/null
@@ -1,38 +0,0 @@
-# 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 = "caribou";
-
- networking.interfaces.eno1.useDHCP = false;
- networking.interfaces.eno1.ipv4.addresses = [
- {
- address = "192.168.1.23";
- prefixLength = 24;
- }
- ];
- networking.interfaces.eno1.ipv6.addresses = [
- {
- address = "2a01:e0a:c:a720::23";
- prefixLength = 64;
- }
- ];
-
- networking.wireguard.interfaces.wg0 = {
- ips = [ "10.42.0.23/16" ];
- listenPort = 33723;
- };
-
- # Enable netdata monitoring
- services.netdata.enable = true;
-
- # Activate as Nomad and Consul server node
- services.nomad.settings.server.enabled = true;
- services.consul.extraConfig.server = true;
-}
diff --git a/node/caribou.site.nix b/node/caribou.site.nix
deleted file mode 120000
index 04ee36c..0000000
--- a/node/caribou.site.nix
+++ /dev/null
@@ -1 +0,0 @@
-../site/neptune.nix \ No newline at end of file
diff --git a/node/spoutnik.nix b/node/spoutnik.nix
deleted file mode 100644
index 1554de9..0000000
--- a/node/spoutnik.nix
+++ /dev/null
@@ -1,68 +0,0 @@
-# Edit this configuration file to define what should be installed on
-# your system. Help is available in the configuration.nix(5) man page
-# and in the NixOS manual (accessible by running ‘nixos-help’).
-
-{ config, pkgs, ... }:
-
-{
- boot.loader.grub.enable = true;
- boot.loader.grub.version = 2;
- boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
-
- networking.hostName = "spoutnik";
- services.openssh.ports = [ 220 ];
-
- networking.interfaces.enp0s25.useDHCP = false;
- networking.interfaces.enp0s25.ipv4.addresses = [
- {
- address = "192.168.0.40";
- prefixLength = 24;
- }
- ];
-
- networking.wireguard.interfaces.wg0 = {
- ips = [ "10.42.0.2/16" ];
- listenPort = 42136;
- };
-
- # Activate as Nomad and Consul server node
- services.nomad.settings.server.enabled = true;
- services.consul.extraConfig.server = true;
-
- # Nginx configuration:
-
- services.nginx = {
- enable = true;
-
- # Use recommended settings
- recommendedGzipSettings = true;
- recommendedOptimisation = true;
- recommendedProxySettings = true;
- recommendedTlsSettings = true;
-
- # Add any further config to match your needs, e.g.:
- virtualHosts = let
- base = locations: {
- inherit locations;
-
- forceSSL = true;
- enableACME = true;
- };
- proxy = addr: port: base {
- "/".proxyPass = "http://" + addr + ":" + toString(port);
- };
- in {
- "axl.deuxfleurs.fr" = proxy "192.168.0.60" 80;
- "warez.luxeylab.net" = proxy "192.168.0.50" 80;
- };
- };
-
-
- # ACME:
-
- security.acme = {
- acceptTerms = true;
- email = "adrien@luxeylab.net";
- };
-}
-
diff --git a/node/spoutnik.site.nix b/node/spoutnik.site.nix
deleted file mode 120000
index 87c7991..0000000
--- a/node/spoutnik.site.nix
+++ /dev/null
@@ -1 +0,0 @@
-../site/pluton.nix \ No newline at end of file