feat(titan): Zenbook laptop on a shared workstation profile
terra's desktop is split into profiles/workstation.nix (NixOS side) and home/desktop/ (home-manager side, moved from hosts/terra/home*), so titan, an ASUS Zenbook Pro Duo UX581 (Intel iGPU + RTX 2060 PRIME offload), gets the same Hyprland workstation. Per-host monitors, primary/secondary output and wallpaper are homelab.desktop.* options; the quickshell widgets read the outputs from QS_PRIMARY_OUTPUT/QS_SECONDARY_OUTPUT instead of hardcoding DP-2/HDMI-A-1. Folder icons come from a new HyprChrome-Folders icon theme. titan gets its own sops file and recipient. LibreChat is removed from terra along with its secrets declarations. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -4,7 +4,7 @@ let
|
||||
rishot = pkgs.callPackage ../../pkgs/rishot.nix { };
|
||||
in
|
||||
|
||||
# Desktop applications for a workstation host (currently: terra). Split from
|
||||
# Desktop applications for a workstation host (terra, titan). Split from
|
||||
# desktop-hyprland.nix, which owns the *session* (compositor, greeter, audio,
|
||||
# portals); this owns the things the user actually launches inside it.
|
||||
{
|
||||
@@ -19,7 +19,8 @@ in
|
||||
"claude-desktop" # services/desktop/claude-desktop.nix
|
||||
"proton-pass-cli"
|
||||
"vivaldi"
|
||||
"mongodb" # librechat's local db (services/desktop/librechat.nix) — SSPL
|
||||
"nvidia-x11" # titan's RTX 2060
|
||||
"nvidia-settings"
|
||||
];
|
||||
|
||||
programs.steam = {
|
||||
|
||||
@@ -1,87 +0,0 @@
|
||||
{ config, ... }:
|
||||
|
||||
# LibreChat — web chat UI, talking to the local ollama server (see
|
||||
# hosts/terra/configuration.nix) over its OpenAI-compatible /v1 route.
|
||||
# Only reachable over the tailnet (networking.firewall.trustedInterfaces =
|
||||
# [ "tailscale0" ] in services/vpn/tailscale.nix) — openFirewall stays off.
|
||||
{
|
||||
services.librechat = {
|
||||
enable = true;
|
||||
enableLocalDB = true; # spins up a local, unauthenticated-on-localhost mongodb
|
||||
|
||||
# LibreChat's isEnabled() treats an unset var as false, not true (despite
|
||||
# .env.example suggesting true is the default), so this must be explicit.
|
||||
# Fine to leave open since it's tailnet-only; flip to false once your
|
||||
# account exists to lock it down.
|
||||
env.ALLOW_REGISTRATION = true;
|
||||
|
||||
credentials = {
|
||||
CREDS_KEY = config.sops.secrets.librechat_creds_key.path;
|
||||
CREDS_IV = config.sops.secrets.librechat_creds_iv.path;
|
||||
JWT_SECRET = config.sops.secrets.librechat_jwt_secret.path;
|
||||
JWT_REFRESH_SECRET = config.sops.secrets.librechat_jwt_refresh_secret.path;
|
||||
};
|
||||
|
||||
settings = {
|
||||
version = "1.2.1";
|
||||
endpoints.custom = [
|
||||
{
|
||||
name = "Ollama";
|
||||
# required field but unchecked by ollama's OpenAI-compat shim
|
||||
apiKey = "ollama";
|
||||
baseURL = "http://127.0.0.1:11434/v1";
|
||||
models = {
|
||||
# Schema requires >=1 entry even though fetch=true overwrites this at
|
||||
# runtime with whatever's pulled (hosts/terra/configuration.nix) —
|
||||
# kept roughly in sync so the UI has sane names before the first fetch.
|
||||
default = [ "gemma4:12b" "qwen3.6:35b-a3b" "VladimirGav/qwen3.8-27B-14GB-IQ4:latest" ];
|
||||
fetch = true; # pull the model list from ollama at startup
|
||||
};
|
||||
titleConvo = true;
|
||||
}
|
||||
];
|
||||
|
||||
# Persistent memory is opt-in at the config level — omitting this block
|
||||
# leaves it off regardless of the user's Settings > Personalization toggle.
|
||||
# `agent.provider` must match endpoints.custom[].name above exactly.
|
||||
memory = {
|
||||
personalize = true; # still needs a per-user opt-in toggle in the UI
|
||||
# instructions REPLACES the default extraction prompt, not appends to it —
|
||||
# needed because the smaller llama3.2:3b (since dropped) kept saving its
|
||||
# own assistant boilerplate as memories, a capability ceiling rather than
|
||||
# a prompting gap. validKeys whitelists what can be stored.
|
||||
validKeys = [ "user_preferences" "personal_info" "ongoing_projects" "technical_context" ];
|
||||
agent = {
|
||||
enabled = true;
|
||||
provider = "Ollama";
|
||||
# same model as the chat endpoint's primary driver — when that's
|
||||
# the active chat model, extraction needs no second model swapped
|
||||
# into VRAM alongside it.
|
||||
model = "gemma4:12b";
|
||||
instructions = ''
|
||||
Save memory ONLY using the keys below, and only when the user's
|
||||
message states something durable and genuinely useful to recall
|
||||
in a LATER, unrelated conversation. Small talk, greetings, and
|
||||
anything about what the assistant said or is capable of are NOT
|
||||
memories — if nothing meets the bar, save nothing.
|
||||
|
||||
set_memory REPLACES the entire value stored at a key — it does
|
||||
NOT append to it. Before calling set_memory for a key, check the
|
||||
"Existing memory" section below. If that key already has a
|
||||
value, your new value MUST merge the old and new information
|
||||
into one complete sentence or short paragraph — calling
|
||||
set_memory with only the newest fact silently ERASES everything
|
||||
already stored under that key. Only drop prior details if the
|
||||
user is explicitly correcting or replacing them.
|
||||
|
||||
- user_preferences: explicitly stated preferences (tools, formats, style).
|
||||
- personal_info: durable facts about the user (name, role, timezone).
|
||||
- ongoing_projects: projects or tasks the user is actively working on.
|
||||
- technical_context: durable facts about the user's setup/stack
|
||||
relevant to future answers (e.g. "runs NixOS", "GPU is AMD ROCm").
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user