Compare commits

..

No commits in common. "6218d3de98f07f751de180bda7b2faa8cd6cf889" and "31b1737d56da7cc4df71e8bb2ae7e5a8d1175496" have entirely different histories.

2 changed files with 39 additions and 109 deletions

View file

@ -1,8 +1,4 @@
{ { config, lib, pkgs, pkgs-unstable, ... }: {
config,
...
}:
{
home = { home = {
username = "millironx"; username = "millironx";
homeDirectory = "/home/millironx"; homeDirectory = "/home/millironx";
@ -16,9 +12,7 @@
}; };
}; };
services = { services = {
gpg-agent = { gpg-agent = { sshKeys = [ "F72C07DBA3DC0903C3ABB55E8B460803FEC22640" ]; };
sshKeys = [ "F72C07DBA3DC0903C3ABB55E8B460803FEC22640" ];
};
}; };
virtualisation.quadlet = { virtualisation.quadlet = {
containers = { containers = {
@ -29,13 +23,9 @@
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" ];
"${config.xdg.dataHome}/anythingllm/.env:/app/server/.env:Z" environments = { STORAGE_DIR = "/app/server/storage"; };
];
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,20 +23,15 @@
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-6"; model = "claude-sonnet-4-5";
enable_thinking = true;
effort = "medium";
}; };
default_profile = "ask"; default_profile = "minimal";
}; };
buffer_font_family = "FiraCode Nerd Font"; buffer_font_family = "FiraCode Nerd Font";
buffer_font_size = 11; buffer_font_size = 11;
features = { features = { edit_prediction_provider = "zed"; };
edit_prediction_provider = "zed";
};
git_hosting_providers = [ git_hosting_providers = [
{ {
provider = "forgejo"; provider = "forgejo";
@ -54,58 +49,29 @@
tab_size = 2; tab_size = 2;
formatter.external = { formatter.external = {
command = "${pkgs.caddy}/bin/caddy"; command = "${pkgs.caddy}/bin/caddy";
arguments = [ arguments = [ "fmt" "-c" "-" ];
"fmt"
"-c"
"-"
];
};
};
Julia = {
formatter = {
external = {
command = "jlfmt";
};
}; };
}; };
Julia = { formatter = { external = { command = "jlfmt"; }; }; };
LaTeX = { LaTeX = {
formatter = { formatter = {
external = { external = {
command = command = let
let latexindent = (pkgs.texlive.combine {
latexindent = ( inherit (pkgs.texlive) scheme-minimal latexindent;
pkgs.texlive.combine { });
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 = { nil = { settings.nix.flake.autoArchive = true; };
settings.nix.flake.autoArchive = true;
};
nixd = { nixd = {
settings.options.home-manager.expr = ''(builtins.getFlake (builtins.toString ~/.config/home-manager)).homeConfigurations."millironx@${hostname}".options''; settings.options.home-manager.expr = ''
(builtins.getFlake (builtins.toString ~/.config/home-manager)).homeConfigurations."millironx@${hostname}".options'';
}; };
texlab = { texlab = {
settings.texlab = { settings.texlab = {
@ -113,32 +79,18 @@
onSave = true; onSave = true;
forwardSearchAfter = true; forwardSearchAfter = true;
}; };
forwardSearch = forwardSearch = if pkgs.stdenv.hostPlatform.isDarwin then {
if pkgs.stdenv.hostPlatform.isDarwin then executable =
{ "/Applications/Skim.app/Contents/SharedSupport/displayline";
executable = "/Applications/Skim.app/Contents/SharedSupport/displayline"; args = [ "-r" "-g" "%l" "%p" "%f" ];
args = [ } else {
"-r" executable = "/usr/bin/okular";
"-g" args = [ "--unique" "file:%p#src:%l%f" ];
"%l" };
"%p"
"%f"
];
}
else
{
executable = "/usr/bin/okular";
args = [
"--unique"
"file:%p#src:%l%f"
];
};
}; };
}; };
tinymist = { tinymist = {
initialization_options = { initialization_options = { preview.background.enabled = true; };
preview.background.enabled = true;
};
settings = { settings = {
exportPdf = "onSave"; exportPdf = "onSave";
outputPath = "$root/$name"; outputPath = "$root/$name";
@ -146,15 +98,11 @@
}; };
}; };
}; };
preview_tabs = { preview_tabs = { enabled = false; };
enabled = false; ssh_connections = [{
}; host = "anderson";
ssh_connections = [ projects = [{ paths = [ "/var/docker" ]; }];
{ }];
host = "anderson";
projects = [ { paths = [ "/var/docker" ]; } ];
}
];
show_edit_predictions = false; show_edit_predictions = false;
terminal = { terminal = {
font_family = "MesloLGS NF"; font_family = "MesloLGS NF";
@ -163,29 +111,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 = [ wrap_guides = [ 80 92 120 ];
80
92
120
];
}; };
userTasks = [ userTasks = [
{ {
label = "latexmk (project)"; label = "latexmk (project)";
command = "latexmk"; command = "latexmk";
args = [ args = [ "-synctex=1" "-pdf" "-recorder" ];
"-synctex=1"
"-pdf"
"-recorder"
];
cwd = "$ZED_DIRNAME"; cwd = "$ZED_DIRNAME";
tags = [ "latex-build" ]; tags = [ "latex-build" ];
} }
{ {
label = "Open Typst preview"; label = "Open Typst preview";
command = "${ command = "${
if pkgs.stdenv.hostPlatform.isDarwin then "open" else "xdg-open" if pkgs.stdenv.hostPlatform.isDarwin then "open" else "xdg-open"
} http://127.0.0.1:23635/"; } http://127.0.0.1:23635/";
use_new_terminal = true; use_new_terminal = true;
allow_concurrent_runs = false; allow_concurrent_runs = false;
reveal = "never"; reveal = "never";