this repo has no description

Add LLM CLI tool for accessing AI features

hauleth.dev 508ba24c f717b6bc

verified
+27 -27
flake.lock
···
]
},
"locked": {
-
"lastModified": 1751270151,
-
"narHash": "sha256-xL7UKUPnJwqmlQKiqeVX+LDbLKIP8fcBcc55ocnhy64=",
+
"lastModified": 1751313918,
+
"narHash": "sha256-HsJM3XLa43WpG+665aGEh8iS8AfEwOIQWk3Mke3e7nk=",
"owner": "lnl7",
"repo": "nix-darwin",
-
"rev": "425c929e209a05f8790ce83106942e94258adbc8",
+
"rev": "e04a388232d9a6ba56967ce5b53a8a6f713cdfcf",
"type": "github"
},
"original": {
···
},
"darwin-stable": {
"locked": {
-
"lastModified": 1751125036,
-
"narHash": "sha256-e0SC5qMG1bj0Sm+2/rRFHRDM6aoRmFIhMrwpQKHmA3c=",
+
"lastModified": 1751290243,
+
"narHash": "sha256-kNf+obkpJZWar7HZymXZbW+Rlk3HTEIMlpc6FCNz0Ds=",
"owner": "nixos",
"repo": "nixpkgs",
-
"rev": "92f27305bedaa335cca6da8d183c67b16c26752e",
+
"rev": "5ab036a8d97cb9476fbe81b09076e6e91d15e1b6",
"type": "github"
},
"original": {
···
"nixpkgs-lib": "nixpkgs-lib"
},
"locked": {
-
"lastModified": 1749398372,
-
"narHash": "sha256-tYBdgS56eXYaWVW3fsnPQ/nFlgWi/Z2Ymhyu21zVM98=",
+
"lastModified": 1753121425,
+
"narHash": "sha256-TVcTNvOeWWk1DXljFxVRp+E0tzG1LhrVjOGGoMHuXio=",
"owner": "hercules-ci",
"repo": "flake-parts",
-
"rev": "9305fe4e5c2a6fcf5ba6a3ff155720fbe4076569",
+
"rev": "644e0fc48951a860279da645ba77fe4a6e814c5e",
"type": "github"
},
"original": {
···
]
},
"locked": {
-
"lastModified": 1750368836,
-
"narHash": "sha256-2t9DAFkvpqRdj3oMyagWG6N9hEUk05DrU9WwlQnul5A=",
+
"lastModified": 1753565501,
+
"narHash": "sha256-G5MlE638vrgUo/aQUy1udjNVTOhY4KeywGaT3bD6V/g=",
"owner": "arxanas",
"repo": "git-branchless",
-
"rev": "4a760400fa846193173044222d36f09495b04694",
+
"rev": "5f4d1ea6801d94f2cdf44b456c108154691cd93f",
"type": "github"
},
"original": {
···
]
},
"locked": {
-
"lastModified": 1751296747,
-
"narHash": "sha256-/nHOfmB0C972nYX0xVF0zWmbt8ooA9TCczfeKHNvwqI=",
+
"lastModified": 1753709185,
+
"narHash": "sha256-fU0XPSNudRJHvbeMK2qWBXEbfd77t7r+e9V2L9ON5kI=",
"owner": "nix-community",
"repo": "home-manager",
-
"rev": "0f21ed5182a158d2f84e9136f6bf8539fd9a6890",
+
"rev": "20cf285e9f8e5e3968abca80081c03ea96e7ea73",
"type": "github"
},
"original": {
···
"neorg": {
"flake": false,
"locked": {
-
"lastModified": 1749805422,
-
"narHash": "sha256-q3wIdHnAgCUczum+1WhrcxO2Nf6chN/IeRHjB1v2tI4=",
+
"lastModified": 1751646203,
+
"narHash": "sha256-uQSrXTngyRSWRyPN7v7uVQOHw+8rLm8+KXxls4nT2K4=",
"owner": "nvim-neorg",
"repo": "neorg",
-
"rev": "9d75ae8e2625db240636870dd7f029c9a82ab9ef",
+
"rev": "790b0444c0c654131a722817dc893332e06c72b9",
"type": "github"
},
"original": {
···
"norg-meta": "norg-meta"
},
"locked": {
-
"lastModified": 1751235419,
-
"narHash": "sha256-3NH+mhwx2Fvq+QmNRgBZD3JFv1tRycu6Zz/nwUKHqxw=",
+
"lastModified": 1753554376,
+
"narHash": "sha256-72G3UloqOH8asQW58J0EtBLyp2f3DcYHY2Q9InmuHcQ=",
"owner": "nvim-neorg",
"repo": "nixpkgs-neorg-overlay",
-
"rev": "360356ceed94b66e2ba9edbf8c22c8e6b8995a58",
+
"rev": "ed92eec2ab79f10c021451a5ec3fd3b8c77cf29e",
"type": "github"
},
"original": {
···
},
"nixpkgs-lib": {
"locked": {
-
"lastModified": 1748740939,
-
"narHash": "sha256-rQaysilft1aVMwF14xIdGS3sj1yHlI6oKQNBRTF40cc=",
+
"lastModified": 1751159883,
+
"narHash": "sha256-urW/Ylk9FIfvXfliA1ywh75yszAbiTEVgpPeinFyVZo=",
"owner": "nix-community",
"repo": "nixpkgs.lib",
-
"rev": "656a64127e9d791a334452c6b6606d17539476e2",
+
"rev": "14a40a1d7fb9afa4739275ac642ed7301a9ba1ab",
"type": "github"
},
"original": {
···
},
"nixpkgs_4": {
"locked": {
-
"lastModified": 1751180975,
-
"narHash": "sha256-BKk4yDiXr4LdF80OTVqYJ53Q74rOcA/82EClXug8xsY=",
+
"lastModified": 1753432016,
+
"narHash": "sha256-cnL5WWn/xkZoyH/03NNUS7QgW5vI7D1i74g48qplCvg=",
"owner": "NixOS",
"repo": "nixpkgs",
-
"rev": "a48741b083d4f36dd79abd9f760c84da6b4dc0e5",
+
"rev": "6027c30c8e9810896b92429f0092f624f7b1aace",
"type": "github"
},
"original": {
+1 -1
hosts/modules/environment.nix
···
findutils
fswatch
fzy
-
gnupg
+
# gnupg
lima
# lnav
neovim-remote
+7
modules/ai.nix
···
+
{ pkgs, ... }: {
+
home.packages = let
+
llm = pkgs.llm.withPlugins {
+
llm-ollama = true;
+
};
+
in [ llm ];
+
}
+1
modules/curl.nix
···
home.packages = [
pkgs.curl
pkgs.curlie
+
pkgs.xh
];
home.file.curlrc = {
+16 -13
modules/ghostty.nix
···
macos-option-as-alt = "left";
+
background = "#232934";
+
foreground = "#c1c9d4";
+
palette = [
-
"0=#384254"
-
"1=#bc284f"
-
"2=#88b4ad"
-
"3=#fdffe1"
-
"4=#5c8097"
-
"5=#4f426a"
-
"6=#008097"
-
"7=#8c98a7"
-
"8=#4a5265"
-
"9=#bc284f"
+
"0=#384254"
+
"1=#bc284f"
+
"2=#7caca5"
+
"3=#fcffcd"
+
"4=#5c8097"
+
"5=#7d6ba3"
+
"6=#008097"
+
"7=#8c98a7"
+
"8=#4a5265"
+
"9=#d43760"
"10=#88b4ad"
"11=#fdffe1"
-
"12=#5c8097"
-
"13=#4f426a"
-
"14=#008097"
+
"12=#a2b8c6"
+
"13=#b2a7c9"
+
"14=#00c3e5"
"15=#c1c9d4"
];
+2 -6
modules/git.nix
···
# manual.manpages.enable = true;
home.packages = [
-
pkgs.git-absorb
-
# (inputs.self.lib.dontCheck inputs.git-branchless.packages.${pkgs.stdenv.hostPlatform.system}.git-branchless)
pkgs.git-branchless
pkgs.git-gone
pkgs.git-cliff
# pkgs.git-revise
-
pkgs.gitAndTools.git-imerge
+
# pkgs.gitAndTools.git-imerge
# pkgs.prr
inputs.self.packages.${pkgs.stdenv.hostPlatform.system}.prr
pkgs.hut
-
pkgs.patch2pr
-
pkgs.revup
inputs.self.packages.${pkgs.stdenv.hostPlatform.system}.imbox
-
pkgs.radicle-node
+
# pkgs.radicle-node
];
programs.git = {
+51 -12
modules/jj.nix
···
user.email = "~@hauleth.dev";
user.name = "Łukasz Niemier";
+
ui.default-command = ["log" "--template=log_compact"];
+
aliases = {
record = ["commit"];
ci = ["commit"];
···
tug = ["bookmark" "move" "--from" "closest_bookmark(@-)" "--to" "@-"];
pull = ["git" "fetch"];
push = ["git" "push" "--allow-new"];
+
sync = [
+
"rebase"
+
"--source" "all:roots(trunk()..mutable())"
+
"--destination" "trunk()"
+
];
};
revset-aliases = {
···
git.write-change-id-header = true;
-
colors."diff token".underline = false;
+
colors = {
+
# change_id = "green";
+
"diff token".underline = false;
+
};
signing = {
behavior = "own";
···
};
};
-
templates.draft_commit_description =''
-
concat(
-
coalesce(description, default_commit_description, "\n"),
-
surround(
-
"\nJJ: This commit contains the following changes:\n", "",
-
indent("JJ: ", diff.stat(72)),
-
),
-
"\nJJ: ignore-rest\n",
-
diff.git(),
-
)
-
'';
+
template-aliases = {
+
log_compact = ''
+
if(root,
+
format_root_commit(self),
+
label(if(current_working_copy, "working_copy"),
+
concat(
+
separate(" ",
+
format_short_change_id_with_hidden_and_divergent_info(self),
+
if(empty, label("empty", "(empty)")),
+
if(description,
+
description.first_line(),
+
label(if(empty, "empty"), description_placeholder),
+
),
+
bookmarks,
+
tags,
+
working_copies,
+
if(git_head, label("git_head", "HEAD")),
+
if(conflict, label("conflict", "conflict")),
+
if(config("ui.show-cryptographic-signatures").as_boolean(),
+
format_short_cryptographic_signature(signature)),
+
) ++ "\n",
+
),
+
)
+
)
+
'';
+
};
+
+
templates = {
+
draft_commit_description =''
+
concat(
+
coalesce(description, default_commit_description, "\n"),
+
surround(
+
"\nJJ: This commit contains the following changes:\n", "",
+
indent("JJ: ", diff.stat(72)),
+
),
+
"\nJJ: ignore-rest\n",
+
diff.git(),
+
)
+
'';
+
};
};
};
+2 -80
modules/nvim.nix
···
lua << EOF
vim.g.lsp_paths = {
['rust_analyzer'] = "${pkgs.rust-analyzer}/bin/rust-analyzer",
-
['lexical'] = "${inputs.lexical.packages.${pkgs.stdenv.hostPlatform.system}.lexical}/bin/lexical",
+
['lexical'] = "${pkgs.lexical}/bin/lexical",
['typos_lsp'] = "${pkgs.typos-lsp}/bin/typos-lsp"
}
package.path = package.path .. ";${pkgs.luajitPackages.fennel}/share/lua/5.1/?.lua"
···
# plugins.lua-utils-nvim
plugins.neorg
plugins.neorg-telescope
-
(plugins.nvim-treesitter.withPlugins (p: with p; [
-
awk
-
bash
-
c
-
clojure
-
comment
-
cpp
-
css
-
dhall
-
diff
-
djot
-
dot
-
editorconfig
-
eex
-
elixir
-
erlang
-
fennel
-
fish
-
git_config
-
git_rebase
-
gitattributes
-
gitcommit
-
gitignore
-
gleam
-
glsl
-
graphql
-
haskell
-
hcl
-
heex
-
html
-
hurl
-
ini
-
javascript
-
jq
-
json
-
julia
-
just
-
latex
-
lua
-
luadoc
-
luap
-
luau
-
make
-
markdown
-
markdown_inline
-
mermaid
-
meson
-
nginx
-
nickel
-
nix
-
# norg
-
po
-
printf
-
prolog
-
promql
-
properties
-
python
-
r
-
racket
-
ruby
-
rust
-
scala
-
scheme
-
sql
-
ssh_config
-
superhtml
-
terraform
-
toml
-
toml
-
typescript
-
typst
-
vim
-
vimdoc
-
xml
-
yaml
-
zig
-
ziggy
-
ziggy_schema
-
]))
+
plugins.nvim-treesitter.withAllGrammars
];
opt = [];
+3 -12
modules/nvim/fnl/langclient.fnl
···
(on CursorHold "*" (vim.diagnostic.open_float {:focus false})))
-
(set configs.lexical {
-
:default_config {
-
:autostart false
-
:filetypes ["elixir" "eelixir" "heex"]
-
:root_dir (lspconfig.util.root_pattern "mix.exs")
-
}})
-
(set lspconfig.util.default_config
(vim.tbl_extend :force lspconfig.util.default_config
{:autostart false}))
···
:settings {:rust-analyzer {:files {:excludeDirs [".direnv"]}}}})
(setup :lexical {
-
:cmd [vim.g.lsp_paths.lexical :start]
-
})
+
:cmd [vim.g.lsp_paths.lexical]})
-
(setup :zls {})
+
; (setup :zls {})
;(setup :nixd {
; :autostart true
···
(setup :typos_lsp {
:autostart true
-
:cmd [vim.g.lsp_paths.typos_lsp]
-
})
+
:cmd [vim.g.lsp_paths.typos_lsp]})
(augroup lsp-direnv (on User :DirenvLoaded (cmd.LspStart)))
+1 -1
modules/pijul.nix
···
{pkgs, ...}: {
-
home.packages = [pkgs.pijul];
+
# home.packages = [pkgs.pijul];
}
+1 -1
modules/swiftbar.nix
···
config = {
home.packages = [
-
pkgs.swiftbar
+
# pkgs.swiftbar
];
targets.darwin.defaults = {
+1 -1
modules/tools.nix
···
in {
home.packages = [
# bfs
-
pkgs-self.ubin-client
+
# pkgs-self.ubin-client
pkgs.btop
pkgs.charm-freeze
# pkgs.comby
+2
users/hauleth.nix
···
../modules/ctags.nix
../modules/curl.nix
../modules/tools.nix
+
../modules/swiftbar.nix
../modules/email.nix
../modules/pijul.nix
../modules/nvim.nix
../modules/ghostty.nix
../modules/jj.nix
+
../modules/ai.nix
./modules/dircolors.nix
{home.stateVersion = "24.11";}
];