aboutsummaryrefslogtreecommitdiff
path: root/node
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-12-26 13:23:01 +0100
committerAlex Auvolat <alex@adnab.me>2021-12-26 13:23:01 +0100
commit2f6d64a1a81de511c0b62dc2241dc08dc75e5283 (patch)
tree7b5a0eecc6c3b523340fea5ee2d45c66f4a4f1c5 /node
parent05bb108323cd7a28968f38a21817443ce17a429a (diff)
downloadnixcfg-2f6d64a1a81de511c0b62dc2241dc08dc75e5283.tar.gz
nixcfg-2f6d64a1a81de511c0b62dc2241dc08dc75e5283.zip
Cleanup
Diffstat (limited to 'node')
-rw-r--r--node/carcajou.nix3
-rw-r--r--node/caribou.nix39
2 files changed, 3 insertions, 39 deletions
diff --git a/node/carcajou.nix b/node/carcajou.nix
index 0698663..59c2008 100644
--- a/node/carcajou.nix
+++ b/node/carcajou.nix
@@ -35,7 +35,4 @@
# Activate as Nomad and Consul server node
services.nomad.settings.server.enabled = true;
services.consul.extraConfig.server = true;
-
- # Use this node as entrypoint to cluster (Diplonat not working for now)
- networking.firewall.allowedTCPPorts = [ 80 443 ];
}
diff --git a/node/caribou.nix b/node/caribou.nix
index 77fc35b..dc5e917 100644
--- a/node/caribou.nix
+++ b/node/caribou.nix
@@ -8,7 +8,7 @@
boot.loader.timeout = 20;
boot.loader.efi.canTouchEfiVariables = true;
- networking.hostName = "caribou"; # Define your hostname.
+ networking.hostName = "caribou";
networking.interfaces.eno1.useDHCP = false;
networking.interfaces.eno1.ipv4.addresses = [
@@ -29,43 +29,10 @@
listenPort = 33723;
};
- # OR use USB modem plugged in here
- #networking.interfaces.enp0s20u1.useDHCP = true;
+ # 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;
-
- # Enable netdata monitoring
- services.netdata.enable = true;
-
- # ----
-
- # Enable nix-serve
- services.nix-serve = {
- enable = true;
- secretKeyFile = "/var/cache-priv-key.pem";
- };
-
- # Configure a Nginx web server to serve NixOS cache
- services.nginx = {
- enable = true;
- virtualHosts = {
- "binarycache.home.adnab.me" = {
- serverAliases = [ "binarycache" ];
- listen = [ {
- addr = "0.0.0.0";
- port = 7980;
- } ];
- locations."/".extraConfig = ''
- proxy_pass http://localhost:${toString config.services.nix-serve.port};
- proxy_set_header Host $host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- '';
- };
- };
- };
-
- networking.firewall.allowedTCPPorts = [ 7980 ];
}