From cc1c668df1237e637f1026ba17a625ef9428de86 Mon Sep 17 00:00:00 2001
From: Martin Weinelt
Date: Fri, 3 Jan 2025 03:22:13 +0100
Subject: [PATCH 1/2] non-critical-infra: set up debuginfo server
---
dns/nixos.org.js | 1 +
non-critical-infra/hosts/caliban/default.nix | 1 +
.../modules/debuginfod/default.nix | 23 ++++++
.../modules/debuginfod/index.html | 77 +++++++++++++++++++
4 files changed, 102 insertions(+)
create mode 100644 non-critical-infra/modules/debuginfod/default.nix
create mode 100644 non-critical-infra/modules/debuginfod/index.html
diff --git a/dns/nixos.org.js b/dns/nixos.org.js
index 8331076c..8f49bd1f 100644
--- a/dns/nixos.org.js
+++ b/dns/nixos.org.js
@@ -104,6 +104,7 @@ D("nixos.org",
A("caliban", "65.109.26.213"),
AAAA("caliban", "2a01:4f9:5a:186c::2"),
CNAME("chat", "caliban"),
+ CNAME("debuginfod", "caliban"),
CNAME("live", "caliban"),
CNAME("matrix", "caliban"),
CNAME("survey", "caliban"),
diff --git a/non-critical-infra/hosts/caliban/default.nix b/non-critical-infra/hosts/caliban/default.nix
index 34c3e0a9..521b0a32 100644
--- a/non-critical-infra/hosts/caliban/default.nix
+++ b/non-critical-infra/hosts/caliban/default.nix
@@ -7,6 +7,7 @@
inputs.srvos.nixosModules.hardware-hetzner-online-amd
../../../modules/rasdaemon.nix
../../modules/common.nix
+ ../../modules/debuginfod
../../modules/first-time-contribution-tagger.nix
../../modules/backup.nix
../../modules/element-web.nix
diff --git a/non-critical-infra/modules/debuginfod/default.nix b/non-critical-infra/modules/debuginfod/default.nix
new file mode 100644
index 00000000..888dd70e
--- /dev/null
+++ b/non-critical-infra/modules/debuginfod/default.nix
@@ -0,0 +1,23 @@
+{
+ imports = [
+ ../nginx.nix
+ ];
+
+ services.nixseparatedebuginfod.enable = true;
+
+ services.nginx.virtualHosts."debuginfod.nixos.org" = {
+ enableACME = true;
+ forceSSL = true;
+
+ locations."= /" = { };
+
+ locations."= /index.html" = {
+ alias = ./index.html;
+ };
+
+ locations."/" = {
+ proxyPass = "http://127.0.0.1:1949";
+ index = "index.html";
+ };
+ };
+}
diff --git a/non-critical-infra/modules/debuginfod/index.html b/non-critical-infra/modules/debuginfod/index.html
new file mode 100644
index 00000000..7aacbd9a
--- /dev/null
+++ b/non-critical-infra/modules/debuginfod/index.html
@@ -0,0 +1,77 @@
+
+
+
+ debuginfod.nixos.org
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ https://debuginfod.nixos.org/
provides access to debug
+ symbols and derivation source code for debuggers supporting the
+ debuginfod protocol. Debug symbols are provided for all derivations
+ that enable the `separateDebugInfo` flag.
+
+
+
export DEBUGINFOD_URLS=http://debuginfod.nixos.org
+
+
+
+
+
+ If you are having trouble, please reach out to the
+ infrastructure team
+
+
+ For questions, or support,
+ the support page from the NixOS website describes how to get in
+ touch.
+
+
+
+
+
From 256e7686250c3934c8ffa7787efe7a9ceaa1ef1a Mon Sep 17 00:00:00 2001
From: Martin Weinelt
Date: Sun, 30 Mar 2025 19:57:16 +0200
Subject: [PATCH 2/2] Update non-critical-infra/modules/debuginfod/index.html
Co-authored-by: Guillaume Girol
---
non-critical-infra/modules/debuginfod/index.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/non-critical-infra/modules/debuginfod/index.html b/non-critical-infra/modules/debuginfod/index.html
index 7aacbd9a..8305cca2 100644
--- a/non-critical-infra/modules/debuginfod/index.html
+++ b/non-critical-infra/modules/debuginfod/index.html
@@ -54,7 +54,7 @@
that enable the `separateDebugInfo` flag.
-
export DEBUGINFOD_URLS=http://debuginfod.nixos.org
+ export DEBUGINFOD_URLS=https://debuginfod.nixos.org