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

View file

@ -7,8 +7,8 @@
"clean-vscode-icons"
"caddyfile"
"clojure"
"cspell"
"dockerfile"
"earthfile"
"git-firefly"
"html"
"julia"
@ -23,15 +23,20 @@
userSettings = {
agent = {
use_modifier_to_send = true;
sidebar_side = "right";
default_model = {
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_size = 11;
features = { edit_prediction_provider = "zed"; };
features = {
edit_prediction_provider = "zed";
};
git_hosting_providers = [
{
provider = "forgejo";
@ -49,29 +54,58 @@
tab_size = 2;
formatter.external = {
command = "${pkgs.caddy}/bin/caddy";
arguments = [ "fmt" "-c" "-" ];
arguments = [
"fmt"
"-c"
"-"
];
};
};
Julia = { formatter = { external = { command = "jlfmt"; }; }; };
LaTeX = {
Julia = {
formatter = {
external = {
command = let
latexindent = (pkgs.texlive.combine {
inherit (pkgs.texlive) scheme-minimal latexindent;
});
in "${latexindent}/bin/latexindent";
arguments = [ "-m" "-tt" "-l" "-" ];
command = "jlfmt";
};
};
};
LaTeX = {
formatter = {
external = {
command =
let
latexindent = (
pkgs.texlive.combine {
inherit (pkgs.texlive) scheme-minimal latexindent;
}
);
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 = {
nil = { settings.nix.flake.autoArchive = true; };
nil = {
settings.nix.flake.autoArchive = true;
};
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 = {
settings.texlab = {
@ -79,18 +113,32 @@
onSave = true;
forwardSearchAfter = true;
};
forwardSearch = if pkgs.stdenv.hostPlatform.isDarwin then {
executable =
"/Applications/Skim.app/Contents/SharedSupport/displayline";
args = [ "-r" "-g" "%l" "%p" "%f" ];
} else {
executable = "/usr/bin/okular";
args = [ "--unique" "file:%p#src:%l%f" ];
};
forwardSearch =
if pkgs.stdenv.hostPlatform.isDarwin then
{
executable = "/Applications/Skim.app/Contents/SharedSupport/displayline";
args = [
"-r"
"-g"
"%l"
"%p"
"%f"
];
}
else
{
executable = "/usr/bin/okular";
args = [
"--unique"
"file:%p#src:%l%f"
];
};
};
};
tinymist = {
initialization_options = { preview.background.enabled = true; };
initialization_options = {
preview.background.enabled = true;
};
settings = {
exportPdf = "onSave";
outputPath = "$root/$name";
@ -98,11 +146,15 @@
};
};
};
preview_tabs = { enabled = false; };
ssh_connections = [{
host = "anderson";
projects = [{ paths = [ "/var/docker" ]; }];
}];
preview_tabs = {
enabled = false;
};
ssh_connections = [
{
host = "anderson";
projects = [ { paths = [ "/var/docker" ]; } ];
}
];
show_edit_predictions = false;
terminal = {
font_family = "MesloLGS NF";
@ -111,21 +163,29 @@
theme = "macOS Classic Dark";
icon_theme = "Clean VSCode Icon Theme";
ui_font_size = 16;
wrap_guides = [ 80 92 120 ];
wrap_guides = [
80
92
120
];
};
userTasks = [
{
label = "latexmk (project)";
command = "latexmk";
args = [ "-synctex=1" "-pdf" "-recorder" ];
args = [
"-synctex=1"
"-pdf"
"-recorder"
];
cwd = "$ZED_DIRNAME";
tags = [ "latex-build" ];
}
{
label = "Open Typst preview";
command = "${
if pkgs.stdenv.hostPlatform.isDarwin then "open" else "xdg-open"
} http://127.0.0.1:23635/";
if pkgs.stdenv.hostPlatform.isDarwin then "open" else "xdg-open"
} http://127.0.0.1:23635/";
use_new_terminal = true;
allow_concurrent_runs = false;
reveal = "never";