Compare commits

..

2 commits

2 changed files with 109 additions and 39 deletions

View file

@ -1,4 +1,8 @@
{ config, lib, pkgs, pkgs-unstable, ... }: { {
config,
...
}:
{
home = { home = {
username = "millironx"; username = "millironx";
homeDirectory = "/home/millironx"; homeDirectory = "/home/millironx";
@ -12,7 +16,9 @@
}; };
}; };
services = { services = {
gpg-agent = { sshKeys = [ "F72C07DBA3DC0903C3ABB55E8B460803FEC22640" ]; }; gpg-agent = {
sshKeys = [ "F72C07DBA3DC0903C3ABB55E8B460803FEC22640" ];
};
}; };
virtualisation.quadlet = { virtualisation.quadlet = {
containers = { containers = {
@ -23,9 +29,13 @@
autoUpdate = "registry"; autoUpdate = "registry";
addHosts = [ "ollama.millironx.local:host-gateway" ]; addHosts = [ "ollama.millironx.local:host-gateway" ];
publishPorts = [ "3001:3001" ]; publishPorts = [ "3001:3001" ];
volumes = volumes = [
[ "${config.xdg.dataHome}/anythingllm:/app/server/storage:Z" ]; "${config.xdg.dataHome}/anythingllm:/app/server/storage:Z"
environments = { STORAGE_DIR = "/app/server/storage"; }; "${config.xdg.dataHome}/anythingllm/.env:/app/server/.env:Z"
];
environments = {
STORAGE_DIR = "/app/server/storage";
};
}; };
}; };

View file

@ -7,8 +7,8 @@
"clean-vscode-icons" "clean-vscode-icons"
"caddyfile" "caddyfile"
"clojure" "clojure"
"cspell"
"dockerfile" "dockerfile"
"earthfile"
"git-firefly" "git-firefly"
"html" "html"
"julia" "julia"
@ -23,15 +23,20 @@
userSettings = { userSettings = {
agent = { agent = {
use_modifier_to_send = true; use_modifier_to_send = true;
sidebar_side = "right";
default_model = { default_model = {
provider = "zed.dev"; provider = "zed.dev";
model = "claude-sonnet-4-5"; model = "claude-sonnet-4-6";
enable_thinking = true;
effort = "medium";
}; };
default_profile = "minimal"; default_profile = "ask";
}; };
buffer_font_family = "FiraCode Nerd Font"; buffer_font_family = "FiraCode Nerd Font";
buffer_font_size = 11; buffer_font_size = 11;
features = { edit_prediction_provider = "zed"; }; features = {
edit_prediction_provider = "zed";
};
git_hosting_providers = [ git_hosting_providers = [
{ {
provider = "forgejo"; provider = "forgejo";
@ -49,29 +54,58 @@
tab_size = 2; tab_size = 2;
formatter.external = { formatter.external = {
command = "${pkgs.caddy}/bin/caddy"; command = "${pkgs.caddy}/bin/caddy";
arguments = [ "fmt" "-c" "-" ]; arguments = [
"fmt"
"-c"
"-"
];
};
};
Julia = {
formatter = {
external = {
command = "jlfmt";
};
}; };
}; };
Julia = { formatter = { external = { command = "jlfmt"; }; }; };
LaTeX = { LaTeX = {
formatter = { formatter = {
external = { external = {
command = let command =
latexindent = (pkgs.texlive.combine { let
latexindent = (
pkgs.texlive.combine {
inherit (pkgs.texlive) scheme-minimal latexindent; inherit (pkgs.texlive) scheme-minimal latexindent;
}); }
in "${latexindent}/bin/latexindent"; );
arguments = [ "-m" "-tt" "-l" "-" ]; in
"${latexindent}/bin/latexindent";
arguments = [
"-m"
"-tt"
"-l"
"-"
];
}; };
}; };
}; };
Nix = { formatter.external.command = "${pkgs.nixfmt}/bin/nixfmt"; }; };
language_models =
{
ollama =
let
serverName = if (hostname == "odyssey") then "localhost" else "odyssey";
in
{
api_uri = "http://${serverName}:11434";
};
}; };
lsp = { lsp = {
nil = { settings.nix.flake.autoArchive = true; }; nil = {
settings.nix.flake.autoArchive = true;
};
nixd = { nixd = {
settings.options.home-manager.expr = '' settings.options.home-manager.expr = ''(builtins.getFlake (builtins.toString ~/.config/home-manager)).homeConfigurations."millironx@${hostname}".options'';
(builtins.getFlake (builtins.toString ~/.config/home-manager)).homeConfigurations."millironx@${hostname}".options'';
}; };
texlab = { texlab = {
settings.texlab = { settings.texlab = {
@ -79,18 +113,32 @@
onSave = true; onSave = true;
forwardSearchAfter = true; forwardSearchAfter = true;
}; };
forwardSearch = if pkgs.stdenv.hostPlatform.isDarwin then { forwardSearch =
executable = if pkgs.stdenv.hostPlatform.isDarwin then
"/Applications/Skim.app/Contents/SharedSupport/displayline"; {
args = [ "-r" "-g" "%l" "%p" "%f" ]; executable = "/Applications/Skim.app/Contents/SharedSupport/displayline";
} else { args = [
"-r"
"-g"
"%l"
"%p"
"%f"
];
}
else
{
executable = "/usr/bin/okular"; executable = "/usr/bin/okular";
args = [ "--unique" "file:%p#src:%l%f" ]; args = [
"--unique"
"file:%p#src:%l%f"
];
}; };
}; };
}; };
tinymist = { tinymist = {
initialization_options = { preview.background.enabled = true; }; initialization_options = {
preview.background.enabled = true;
};
settings = { settings = {
exportPdf = "onSave"; exportPdf = "onSave";
outputPath = "$root/$name"; outputPath = "$root/$name";
@ -98,11 +146,15 @@
}; };
}; };
}; };
preview_tabs = { enabled = false; }; preview_tabs = {
ssh_connections = [{ enabled = false;
};
ssh_connections = [
{
host = "anderson"; host = "anderson";
projects = [{ paths = [ "/var/docker" ]; }]; projects = [ { paths = [ "/var/docker" ]; } ];
}]; }
];
show_edit_predictions = false; show_edit_predictions = false;
terminal = { terminal = {
font_family = "MesloLGS NF"; font_family = "MesloLGS NF";
@ -111,13 +163,21 @@
theme = "macOS Classic Dark"; theme = "macOS Classic Dark";
icon_theme = "Clean VSCode Icon Theme"; icon_theme = "Clean VSCode Icon Theme";
ui_font_size = 16; ui_font_size = 16;
wrap_guides = [ 80 92 120 ]; wrap_guides = [
80
92
120
];
}; };
userTasks = [ userTasks = [
{ {
label = "latexmk (project)"; label = "latexmk (project)";
command = "latexmk"; command = "latexmk";
args = [ "-synctex=1" "-pdf" "-recorder" ]; args = [
"-synctex=1"
"-pdf"
"-recorder"
];
cwd = "$ZED_DIRNAME"; cwd = "$ZED_DIRNAME";
tags = [ "latex-build" ]; tags = [ "latex-build" ];
} }