aboutsummaryrefslogtreecommitdiff
path: root/cluster/staging/site
diff options
context:
space:
mode:
Diffstat (limited to 'cluster/staging/site')
-rw-r--r--cluster/staging/site/neptune.nix20
-rw-r--r--cluster/staging/site/pluton.nix13
2 files changed, 33 insertions, 0 deletions
diff --git a/cluster/staging/site/neptune.nix b/cluster/staging/site/neptune.nix
new file mode 100644
index 0000000..49e126a
--- /dev/null
+++ b/cluster/staging/site/neptune.nix
@@ -0,0 +1,20 @@
+{ config, pkgs, ... }:
+
+{
+ networking.defaultGateway = {
+ address = "192.168.1.254";
+ interface = "eno1";
+ };
+
+ deuxfleurs.site_name = "neptune";
+
+ networking.firewall.allowedTCPPorts = [ 80 443 ];
+
+ services.cron = {
+ enable = true;
+ systemCronJobs = [
+ "0 2 * * * root nix-collect-garbage --delete-older-than 10d >> /root/nix_gc_log 2>&1"
+ "30 2 * * * root docker run --rm -v /var/lib/drone/nix:/nix nixpkgs/nix:nixos-21.05 nix-collect-garbage --delete-older-than 30d >> /root/drone_nix_gc_log 2>&1"
+ ];
+ };
+}
diff --git a/cluster/staging/site/pluton.nix b/cluster/staging/site/pluton.nix
new file mode 100644
index 0000000..9f972c0
--- /dev/null
+++ b/cluster/staging/site/pluton.nix
@@ -0,0 +1,13 @@
+{ config, pkgs, ... }:
+
+{
+ networking.defaultGateway = {
+ address = "192.168.0.1";
+ interface = "enp0s25";
+ };
+ networking.nameservers = [ "213.186.33.99" "172.104.136.243" ];
+
+ deuxfleurs.site_name = "pluton";
+
+ networking.firewall.allowedTCPPorts = [ 80 443 ];
+}