From c4448d4e960bc895e9d73a9cf5d6f58f1dc9bd67 Mon Sep 17 00:00:00 2001
From: Alan Pearce
Date: Mon, 13 May 2024 23:42:54 +0200
Subject: linde: deploy searchix
---
system/linde.nix | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
(limited to 'system')
diff --git a/system/linde.nix b/system/linde.nix
index bbcf0b0f..97699025 100644
--- a/system/linde.nix
+++ b/system/linde.nix
@@ -146,6 +146,13 @@ in
auto-optimise-store = true;
trusted-users = [ "root" "nixremote" ];
experimental-features = [ "nix-command" "flakes" ];
+ substituters = [
+ "https://nix-community.cachix.org"
+ ];
+
+ trusted-public-keys = [
+ "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
+ ];
};
gc = {
automatic = true;
@@ -678,6 +685,12 @@ in
reverse_proxy localhost${config.services.ntfy-sh.settings.listen-http}
'';
};
+ "searchix.alanpearce.eu" = {
+ useACMEHost = "alanpearce.eu";
+ extraConfig = ''
+ reverse_proxy localhost:${toString config.services.searchix.settings.web.port}
+ '';
+ };
"legit.alanpearce.eu" =
let
server = config.services.legit.settings.server;
@@ -803,4 +816,40 @@ in
overrideDevices = false;
overrideFolders = false;
};
+
+ services.searchix = {
+ enable = true;
+ settings = {
+ web = {
+ baseURL = "https://searchix.alanpearce.eu";
+ sentryDSN = "https://26d4cd8d20157ae2f6b4726ceae1a563@o4507187730120704.ingest.de.sentry.io/4507187734970448";
+ contentSecurityPolicy = {
+ script-src = [
+ "'self'"
+ "'unsafe-inline'"
+ "https://gc.zgo.at"
+ "https://js-de.sentry-cdn.com"
+ "https://browser.sentry-cdn.com"
+ ];
+ connect-src = [
+ "'self'"
+ "https://searchix.goatcounter.com/count"
+ "*.sentry.io"
+ ];
+ };
+ extraBodyHTML = ''
+
+
+ '';
+ };
+
+ importer.sources = {
+ darwin.enable = true;
+ home-manager.enable = true;
+ };
+ };
+ };
}
--
cgit 1.4.1