diff --git a/CLAUDE.md b/CLAUDE.md index e7fc33f..42ec74b 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -326,7 +326,7 @@ Use `nix flake show` or `nix develop -c ansible-inventory --graph` to list all h - `nixpkgs-unstable` - Unstable channel (available via overlay as `pkgs.unstable.`) - `nixos-exporter` - NixOS module for exposing flake revision metrics (used to verify deployments) - `homelab-deploy` - NATS-based remote deployment tool for test-tier hosts -- Custom packages from git.t-juice.club: +- Custom packages from code.t-juice.club: - `alerttonotify` - Alert routing ### Network Architecture @@ -355,7 +355,7 @@ Most hosts use OpenBao (Vault) for secrets: All hosts pull updates daily from: ``` -git+https://git.t-juice.club/torjus/nixos-servers.git +git+https://code.t-juice.club/torjus/nixos-servers.git ``` Configured in `/system/autoupgrade.nix`: diff --git a/hosts/nix-cache02/builder.nix b/hosts/nix-cache02/builder.nix index 8320a36..a65f567 100644 --- a/hosts/nix-cache02/builder.nix +++ b/hosts/nix-cache02/builder.nix @@ -16,11 +16,11 @@ settings.repos = { nixos-servers = { - url = "git+https://git.t-juice.club/torjus/nixos-servers.git"; + url = "git+https://code.t-juice.club/torjus/nixos-servers.git"; defaultBranch = "master"; }; nixos = { - url = "git+https://git.t-juice.club/torjus/nixos.git"; + url = "git+https://code.t-juice.club/torjus/nixos.git"; defaultBranch = "master"; }; }; diff --git a/hosts/template2/bootstrap.nix b/hosts/template2/bootstrap.nix index e9fc4fc..f53cc68 100644 --- a/hosts/template2/bootstrap.nix +++ b/hosts/template2/bootstrap.nix @@ -70,10 +70,10 @@ let echo "Waiting for network connectivity..." # Verify we can reach the git server via HTTPS (doesn't respond to ping) - if ! curl -s --connect-timeout 5 --max-time 10 https://git.t-juice.club >/dev/null 2>&1; then - echo "ERROR: Cannot reach git.t-juice.club via HTTPS" + if ! curl -s --connect-timeout 5 --max-time 10 https://code.t-juice.club >/dev/null 2>&1; then + echo "ERROR: Cannot reach code.t-juice.club via HTTPS" echo "Check network configuration and DNS settings" - log_to_loki "failed" "Network check failed - cannot reach git.t-juice.club" + log_to_loki "failed" "Network check failed - cannot reach code.t-juice.club" exit 1 fi @@ -134,7 +134,7 @@ let log_to_loki "building" "Starting nixos-rebuild boot" # Build and activate the host-specific configuration - FLAKE_URL="git+https://git.t-juice.club/torjus/nixos-servers.git?ref=$BRANCH#''${HOSTNAME}" + FLAKE_URL="git+https://code.t-juice.club/torjus/nixos-servers.git?ref=$BRANCH#''${HOSTNAME}" if nixos-rebuild boot --flake "$FLAKE_URL"; then echo "Successfully built configuration for $HOSTNAME" diff --git a/system/autoupgrade.nix b/system/autoupgrade.nix index f50bb91..7e458b6 100644 --- a/system/autoupgrade.nix +++ b/system/autoupgrade.nix @@ -4,6 +4,6 @@ enable = true; randomizedDelaySec = "1h"; allowReboot = true; - flake = "git+https://git.t-juice.club/torjus/nixos-servers.git"; + flake = "git+https://code.t-juice.club/torjus/nixos-servers.git"; }; } diff --git a/system/homelab-deploy.nix b/system/homelab-deploy.nix index 8417572..82d1d20 100644 --- a/system/homelab-deploy.nix +++ b/system/homelab-deploy.nix @@ -18,7 +18,7 @@ in role = hostCfg.role; natsUrl = "nats://nats1.home.2rjus.net:4222"; nkeyFile = "/run/secrets/homelab-deploy-nkey"; - flakeUrl = "git+https://git.t-juice.club/torjus/nixos-servers.git"; + flakeUrl = "git+https://code.t-juice.club/torjus/nixos-servers.git"; metrics.enable = true; }; diff --git a/system/monitoring/metrics.nix b/system/monitoring/metrics.nix index 083a89c..7fd9131 100644 --- a/system/monitoring/metrics.nix +++ b/system/monitoring/metrics.nix @@ -32,7 +32,7 @@ # Default port: 9971 flake = { enable = true; - url = "git+https://git.t-juice.club/torjus/nixos-servers.git"; + url = "git+https://code.t-juice.club/torjus/nixos-servers.git"; nats = { enable = true; url = "nats://nats1.home.2rjus.net:4222"; diff --git a/system/nix.nix b/system/nix.nix index 5889f77..eb689b6 100644 --- a/system/nix.nix +++ b/system/nix.nix @@ -14,7 +14,7 @@ let branch="$2" shift 2 - exec nixos-rebuild "$action" --flake "git+https://git.t-juice.club/torjus/nixos-servers.git?ref=$branch" "$@" + exec nixos-rebuild "$action" --flake "git+https://code.t-juice.club/torjus/nixos-servers.git?ref=$branch" "$@" ''; }; in