more opencode stuff
This commit is contained in:
@@ -23,6 +23,11 @@
|
||||
settings.PermitRootLogin = "no";
|
||||
};
|
||||
|
||||
programs.gnupg.agent = {
|
||||
enable = true;
|
||||
pinentryPackage = pkgs.pinentry-rofi;
|
||||
};
|
||||
|
||||
hardware.keyboard.qmk.enable = true;
|
||||
services.udev.packages = with pkgs; [ via ];
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{ pkgs, config, lib, ... }:
|
||||
{
|
||||
# ===================
|
||||
# Ollama Service
|
||||
# ===================
|
||||
virtualisation.docker.enable = true;
|
||||
users.users.anish.extraGroups = [ "docker" ];
|
||||
|
||||
services.ollama = {
|
||||
enable = true;
|
||||
acceleration = null; # CPU only, no GPU
|
||||
@@ -10,9 +10,6 @@
|
||||
port = 11434;
|
||||
};
|
||||
|
||||
# ===================
|
||||
# PostgreSQL: Letta Database
|
||||
# ===================
|
||||
services.postgresql = {
|
||||
enable = true;
|
||||
ensureDatabases = [ "letta" ];
|
||||
@@ -35,27 +32,24 @@
|
||||
# pgvector is already provided by immich profile via services.immich.database.enableVectorChord
|
||||
};
|
||||
|
||||
# ===================
|
||||
# Database Setup Service
|
||||
# ===================
|
||||
# Runs after postgresql to enable pgvector and set password
|
||||
systemd.services.raven-db-setup = {
|
||||
description = "Setup Letta database with pgvector and password";
|
||||
after = [ "postgresql.service" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
path = [ config.services.postgresql.package ];
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
User = "postgres";
|
||||
RemainAfterExit = true;
|
||||
};
|
||||
script = ''
|
||||
# Enable pgvector extension
|
||||
psql -d letta -c "CREATE EXTENSION IF NOT EXISTS vector;"
|
||||
#systemd.services.raven-db-setup = {
|
||||
# description = "Setup Letta database with pgvector and password";
|
||||
# after = [ "postgresql.service" ];
|
||||
# wantedBy = [ "multi-user.target" ];
|
||||
# Add your user to docker group
|
||||
# path = [ config.services.postgresql.package ];
|
||||
# serviceConfig = {
|
||||
# Type = "oneshot";
|
||||
# User = "postgres";
|
||||
# RemainAfterExit = true;
|
||||
# };
|
||||
# script = ''
|
||||
# # Enable pgvector extension
|
||||
# psql -d letta -c "CREATE EXTENSION IF NOT EXISTS vector;"
|
||||
|
||||
# Set password for letta user
|
||||
# TODO: Consider using agenix for production
|
||||
psql -c "ALTER USER letta WITH PASSWORD 'letta-dev-password';"
|
||||
'';
|
||||
};
|
||||
# # Set password for letta user
|
||||
# # TODO: Consider using agenix for production
|
||||
# psql -c "ALTER USER letta WITH PASSWORD 'letta-dev-password';"
|
||||
# '';
|
||||
#;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user