Skip to content

Commit 0803db4

Browse files
stackptrclaude
andcommitted
feat(glyph): populate Open WebUI system prompt from llm-profile flake input
Set DEFAULT_SYSTEM_PROMPT by reading the llm-profile flake input (github:stackptr/llm-profile) at build time. Updating the prompt only requires bumping the flake input and rebuilding, with no manual secret editing or database changes. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
1 parent 50fb2b8 commit 0803db4

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎hosts/glyph/services/open-webui.nix‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
config,
3+
inputs,
34
pkgs,
45
...
56
}: {
@@ -40,6 +41,9 @@
4041
ENABLE_API_KEYS = "True";
4142
USER_PERMISSIONS_FEATURES_API_KEYS = "True";
4243
DATABASE_URL = "postgresql:///open-webui?host=/run/postgresql";
44+
45+
# System prompt sourced from llm-profile flake input (github:stackptr/llm-profile)
46+
DEFAULT_SYSTEM_PROMPT = builtins.readFile "${inputs.llm-profile}/README.md";
4347
};
4448
};
4549
}

0 commit comments

Comments
 (0)