From 578075a9252435aaed12d2535577e18e053cd916 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Sun, 11 Dec 2022 22:37:28 +0100 Subject: Add origan node in staging cluster (+ refactor system.stateVersion) --- cluster/staging/site/jupiter.nix | 16 ++++++++++++++++ cluster/staging/site/neptune.nix | 8 -------- 2 files changed, 16 insertions(+), 8 deletions(-) create mode 100644 cluster/staging/site/jupiter.nix (limited to 'cluster/staging/site') diff --git a/cluster/staging/site/jupiter.nix b/cluster/staging/site/jupiter.nix new file mode 100644 index 0000000..31b9f47 --- /dev/null +++ b/cluster/staging/site/jupiter.nix @@ -0,0 +1,16 @@ +{ config, pkgs, ... }: + +{ + deuxfleurs.site_name = "jupiter"; + deuxfleurs.lan_default_gateway = "192.168.1.1"; + deuxfleurs.ipv6_default_gateway = "fe80::9038:202a:73a0:e73b"; + deuxfleurs.lan_ip_prefix_length = 24; + deuxfleurs.ipv6_prefix_length = 64; + deuxfleurs.nameservers = [ "192.168.1.1" ]; + deuxfleurs.cname_target = "jupiter.site.staging.deuxfleurs.org."; + + # no public ipv4 is used for the staging cluster on Jupiter + # deuxfleurs.public_ipv4 = "???"; + + networking.firewall.allowedTCPPorts = [ 80 443 ]; +} diff --git a/cluster/staging/site/neptune.nix b/cluster/staging/site/neptune.nix index 506da65..5399826 100644 --- a/cluster/staging/site/neptune.nix +++ b/cluster/staging/site/neptune.nix @@ -14,12 +14,4 @@ # deuxfleurs.public_ipv4 = "77.207.15.215"; 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 1 * * 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" - ]; - }; } -- cgit v1.2.3