Skip to content

Commit 1a88716

Browse files
authored
Merge pull request #271 from DeterminateSystems/push-tlqrsoynuonv
incident-20251118-nix-flake-registry-is-down use our mirrored registry
2 parents f14ea84 + 8a68ba9 commit 1a88716

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/libfetchers/include/nix/fetchers/fetch-settings.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ struct Settings : public Config
115115

116116
Setting<std::string> flakeRegistry{
117117
this,
118-
"https://channels.nixos.org/flake-registry.json",
118+
"https://install.determinate.systems/flake-registry/stable/flake-registry.json",
119119
"flake-registry",
120120
R"(
121121
Path or URI of the global flake registry.

tests/nixos/github-flakes.nix

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ let
1717
1818
openssl req -newkey rsa:2048 -nodes -keyout $out/server.key \
1919
-subj "/C=CN/ST=Denial/L=Springfield/O=Dis/CN=github.com" -out server.csr
20-
openssl x509 -req -extfile <(printf "subjectAltName=DNS:api.github.com,DNS:github.com,DNS:channels.nixos.org") \
20+
openssl x509 -req -extfile <(printf "subjectAltName=DNS:api.github.com,DNS:github.com,DNS:channels.nixos.org,DNS:install.determinate.systems") \
2121
-days 36500 -in server.csr -CA $out/ca.crt -CAkey ca.key -CAcreateserial -out $out/server.crt
2222
'';
2323

@@ -107,13 +107,13 @@ in
107107
services.httpd.extraConfig = ''
108108
ErrorLog syslog:local6
109109
'';
110-
services.httpd.virtualHosts."channels.nixos.org" = {
110+
services.httpd.virtualHosts."install.determinate.systems" = {
111111
forceSSL = true;
112112
sslServerKey = "${cert}/server.key";
113113
sslServerCert = "${cert}/server.crt";
114114
servedDirs = [
115115
{
116-
urlPath = "/";
116+
urlPath = "/flake-registry/stable/";
117117
dir = registry;
118118
}
119119
];
@@ -165,6 +165,7 @@ in
165165
nix.settings.substituters = lib.mkForce [ ];
166166
networking.hosts.${(builtins.head nodes.github.networking.interfaces.eth1.ipv4.addresses).address} =
167167
[
168+
"install.determinate.systems"
168169
"channels.nixos.org"
169170
"api.github.com"
170171
"github.com"

0 commit comments

Comments
 (0)