this repo has no description
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge branch 'main' of git.sealight.xyz:aynish/helm

+64 -1
-1
home/profiles/cli/default.nix
··· 64 64 taskwarrior-tui 65 65 # vimwiki-cli 66 66 zk 67 - unstable.opencode 68 67 69 68 (pkgs.writeScriptBin "jq-repl" '' 70 69 #!/usr/bin/env bash
+1
hosts/box/default.nix
··· 28 28 ../profiles/jacket 29 29 ../profiles/gpodder 30 30 ../profiles/transmission 31 + ../profiles/raven 31 32 #../profiles/postgres_upgrade_script 32 33 ]; 33 34
+63
hosts/profiles/raven/default.nix
··· 1 + { pkgs, config, lib, ... }: 2 + { 3 + # =================== 4 + # Ollama Service 5 + # =================== 6 + services.ollama = { 7 + enable = true; 8 + acceleration = null; # CPU only, no GPU 9 + host = "127.0.0.1"; 10 + port = 11434; 11 + }; 12 + 13 + # =================== 14 + # PostgreSQL: Letta Database 15 + # =================== 16 + services.postgresql = { 17 + enable = true; 18 + ensureDatabases = [ "letta" ]; 19 + ensureUsers = [ 20 + { 21 + name = "letta"; 22 + ensureDBOwnership = true; 23 + } 24 + ]; 25 + 26 + # Enable TCP connections (required for Docker) 27 + enableTCPIP = true; 28 + 29 + # Allow letta user to connect via TCP with password 30 + authentication = lib.mkAfter '' 31 + # Letta database - TCP password auth for Docker 32 + host letta letta 127.0.0.1/32 scram-sha-256 33 + host letta letta ::1/128 scram-sha-256 34 + ''; 35 + 36 + # Include pgvector extension 37 + extraPlugins = ps: [ ps.pgvector ]; 38 + }; 39 + 40 + # =================== 41 + # Database Setup Service 42 + # =================== 43 + # Runs after postgresql to enable pgvector and set password 44 + systemd.services.raven-db-setup = { 45 + description = "Setup Letta database with pgvector and password"; 46 + after = [ "postgresql.service" ]; 47 + wantedBy = [ "multi-user.target" ]; 48 + path = [ config.services.postgresql.package ]; 49 + serviceConfig = { 50 + Type = "oneshot"; 51 + User = "postgres"; 52 + RemainAfterExit = true; 53 + }; 54 + script = '' 55 + # Enable pgvector extension 56 + psql -d letta -c "CREATE EXTENSION IF NOT EXISTS vector;" 57 + 58 + # Set password for letta user 59 + # TODO: Consider using agenix for production 60 + psql -c "ALTER USER letta WITH PASSWORD 'letta-dev-password';" 61 + ''; 62 + }; 63 + }