Skip to content

Commit c92896c

Browse files
stackptrclaude
andauthored
feat(glyph): populate Open WebUI system prompt from llm-profile (#379)
* 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> * feat(glyph): move TOOL_SERVER_CONNECTIONS to plaintext environment TOOL_SERVER_CONNECTIONS contains no sensitive values, so move it out of the agenix secret into the declarative environment attrset. Use builtins.toJSON to express the connection config as a Nix value rather than a raw JSON string. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
1 parent 50fb2b8 commit c92896c

2 files changed

Lines changed: 29 additions & 8 deletions

File tree

‎hosts/glyph/secrets/open-webui-env.age‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
age-encryption.org/v1
2-
-> ssh-ed25519 rSr+rA dz/LENkfRYCRGz3S3rme3AugxvNBQHCllfUBK1x3cRU
3-
dVWErZ92dwbmbceW5u3Oa7uLmTUoN8EwXjcxhhRZDEI
4-
-> ssh-ed25519 3EWhnQ xfUfB019syuLvs2b/VHjFgQcU7GQOCCN1BEb4bLBs0k
5-
bnKg34rlomn+YFdhv4POXqa7ihpsvmMBf9zIHzN2Sho
6-
--- dKqr25Zk6S8nhHQLWdHx/ceYZnXv/LrCtyZymR8GU6g
7-
�G�K�嵥>U* �r7��]}}�|E�J��"�%5��E�7�+�M�wи*�=���Г��ڪ���+=U��6'T�Y��TY\bsHhYы&�x��:�|�؇�ٺ(@R0����� {�[o�i����N������=���C�ބϴ�� �~M՘�a�f�� ��SQ�D?��3�K��a(�t�+�*M�&s�,��5EȌ�d� ���-���h�Wlfp�dn��.ӥ_�eåu��z���@ԅ�B�r���
8-
�x�-��c[ ��D�~�颉��;��t �#�ތ+��i�{h��<Ө���s�4*7G݅h<V"fߏ�V� �� e���~�W�� �B� �V54[��)�᪃K��ӆ��|X���9��_�-cc���/"N�P�əA IѴ�C�nO��Yk/+;��K)ӿfv��@�'{��2�ⲍ@�ͅA�����0Ѧ��1�� A��%�@�4�˹l{�
9-
�J�#Q=�m�u�(y�黮�$-�b��w�K^�P��E�v �}<Ѱq�q��{`�ǎ�]�]-�NS�!�p0Ƒ�����[����� N~�1_<Ʉ@��%^��Џ����=�v�g���*�a���1�z�XC���'A#�ߥ#6��Qq&����U�D(FN?��h��`޹��=�!2�T��Yȡ��;*�JE��-�F.;�4J��(.6�Ґg0��(��:��TwK_�**3��Ϸ��@�4��Ә�)��ߚ1�Ty��>�G�U@d˧'��#M�&�C5Cp?�^��b���˶ �⟭���?�^/qYd
2+
-> ssh-ed25519 rSr+rA g7O6mNViz7fMYmza4+3RlbvfbSr8VLBMYiaP5oWq3gg
3+
CReRIMM2WX5FSGF68NsVttUcByI/iX7wQeXNO0SCTDM
4+
-> ssh-ed25519 3EWhnQ Lv80uFmKijmxgpODUfVL6hCJGF5a7bMGd4WSwPesMzQ
5+
T4t9ysCO57mIeyFnGbhg2pCNzG6Z7s1qGCc4CUcjtxg
6+
--- XlX6YrNZyEry5V+n5u+N+IbSEzO8y/FDH7raPfYCP2E
7+
���w1^1p��l76mx��ۈ^L8�&\F�7����^<Kx<�aE�Nt�:���N���턙X�]w
8+
����#?��Hd(w� [��.3�+@Z`��1ut } �B �Sx�l�h��Sy%����z��M�a�����Ny�9��( |0�'���ˍ���� e?Db��5�����&�7�3��q��3�S^����G�u��K�N.��쭡ŠE���N.��/a�-�ϤUm�� �H����d��jzS�}@Ee����G�VSz�HSq���2x<}�`���PNj�Oj� ����� �W��rY&�'Fh��|�"48�����oJc�{�G���~���$A�v��85� ̕H�Fw�]� �_�E� �#iV���t��(*�WRW�{�;��gxe0jTUO�]��y�|(r���.�<�� �P�doJ�O��Y"��q��t}z��'�w��%���Z�Prd6�h���SEpn׿�&���3�޻ƭbeCk[�B���;%���Zp̱��.#Q��Y�cT ���z�f���$U��
9+
�!Q��)t�+eB�·KoS%{*�h��w�#�I�σ�m��T�x2v$

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

Lines changed: 21 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,26 @@
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";
47+
48+
# MCP tool server: MCPJungle gateway on glyph (aggregates all registered MCP servers)
49+
TOOL_SERVER_CONNECTIONS = builtins.toJSON [
50+
{
51+
type = "mcp";
52+
url = "http://localhost:8090";
53+
path = "mcp";
54+
auth_type = "none";
55+
key = "";
56+
config.enable = true;
57+
info = {
58+
id = "glyph";
59+
name = "Glyph";
60+
description = "MCP gateway";
61+
};
62+
}
63+
];
4364
};
4465
};
4566
}

0 commit comments

Comments
 (0)