From 22b4611617f7845c8a08086f56683d78c71e0c32 Mon Sep 17 00:00:00 2001 From: William Date: Fri, 22 May 2026 19:01:04 -0300 Subject: [PATCH 1/2] silverbullet domain --- aspects/hosts/_alexandria/silverbullet.nix | 20 ++++++++++++++++++++ data/services.nix | 5 +++++ 2 files changed, 25 insertions(+) create mode 100644 aspects/hosts/_alexandria/silverbullet.nix diff --git a/aspects/hosts/_alexandria/silverbullet.nix b/aspects/hosts/_alexandria/silverbullet.nix new file mode 100644 index 0000000..2b07960 --- /dev/null +++ b/aspects/hosts/_alexandria/silverbullet.nix @@ -0,0 +1,20 @@ +{ config, inputs, ... }: + +let + mkNginxVHosts = inputs.self.lib.mkNginxVHosts; +in + +{ + services = { + silverbullet = { + enable = true; + listenAddress = "127.0.0.1"; + listenPort = 58002; + }; + + nginx.virtualHosts = mkNginxVHosts { + domains."notes.baduhai.dev".locations."/".proxyPass = + "http://${config.services.silverbullet.listenAddress}:${toString config.services.silverbullet.listenPort}/"; + }; + }; +} diff --git a/data/services.nix b/data/services.nix index fe935ee..180dd68 100644 --- a/data/services.nix +++ b/data/services.nix @@ -49,5 +49,10 @@ host = "trantor"; public = true; } + { + name = "silverbullet"; + domain = "notes.baduhai.dev"; + host = "alexandria"; + } ]; } From 13f29c0d7db77084391bc580a5d83abdbe0209db Mon Sep 17 00:00:00 2001 From: William Date: Sat, 23 May 2026 13:30:22 -0300 Subject: [PATCH 2/2] open-webui: use unstable nixpkgs package on alexandria --- aspects/hosts/_alexandria/open-webui.nix | 27 ++++++++++++++++++++++++ data/services.nix | 5 +++++ 2 files changed, 32 insertions(+) create mode 100644 aspects/hosts/_alexandria/open-webui.nix diff --git a/aspects/hosts/_alexandria/open-webui.nix b/aspects/hosts/_alexandria/open-webui.nix new file mode 100644 index 0000000..fecab49 --- /dev/null +++ b/aspects/hosts/_alexandria/open-webui.nix @@ -0,0 +1,27 @@ +{ lib, config, inputs, ... }: +let + mkNginxVHosts = inputs.self.lib.mkNginxVHosts; +in +{ + nixpkgs.overlays = [ + (final: prev: { + open-webui = (import inputs.nixpkgs { + inherit (prev) system; + config.allowUnfree = true; + }).open-webui; + }) + ]; + + services.open-webui = { + enable = true; + environment = { + SCARF_NO_ANALYTICS = "True"; + DO_NOT_TRACK = "True"; + ANONYMIZED_TELEMETRY = "False"; + }; + }; + + services.nginx.virtualHosts = mkNginxVHosts { + domains."ai.baduhai.dev".locations."/".proxyPass = "http://127.0.0.1:8080/"; + }; +} diff --git a/data/services.nix b/data/services.nix index 180dd68..35cfeca 100644 --- a/data/services.nix +++ b/data/services.nix @@ -54,5 +54,10 @@ domain = "notes.baduhai.dev"; host = "alexandria"; } + { + name = "open-webui"; + domain = "ai.baduhai.dev"; + host = "alexandria"; + } ]; }