-
Notifications
You must be signed in to change notification settings - Fork 0
chore: sync chore-v2 branch with main #397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
f2104f6
93f742e
e283710
04e2098
80859c6
0e7d9aa
7044704
0074707
85f29de
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -135,7 +135,7 @@ setup: nix-setup ## Basic Nix setup (alias for nix-setup). | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| setup-dev: nix-setup git-submodule-sync shell-install ## Set up local development environment (Nix + submodules + shell). | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .PHONY: switch | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| switch: nix-switch ## Apply Nix configuration (alias for nix-switch). | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| switch: nix-switch launchctl ## Apply Nix configuration and restart launchd agents. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .PHONY: update | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| update: nix-update shell-update neovim-update ## Update Nix flake and configurations. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -567,6 +567,47 @@ lua-check-hammerspoon-dev: ## Run the Hammerspoon Lua check inside the Nix dev s | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @echo "🧪 Running Hammerspoon Lua check inside the Nix dev shell..." | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @DEVENV_ROOT=$(CURDIR) $(NIX_ALLOW_UNFREE) $(NIX_EXEC) develop $(NIX_FLAGS) .# --command $(MAKE) lua-check-hammerspoon | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ##@ Launchd Services | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .PHONY: launchctl | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| launchctl: launchctl-brew-upgrader launchctl-cliproxyapi launchctl-code-syncer launchctl-dotfiles-updater launchctl-neverssl-keepalive launchctl-ollama ## Restart all launchd agents. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .PHONY: launchctl-brew-upgrader | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| launchctl-brew-upgrader: ## Restart brew-upgrader launchd agent. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @echo "🔄 Restarting brew-upgrader..." | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @launchctl kickstart -k gui/$$(id -u)/org.nix-community.home.brew-upgrader || true | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @echo "✅ brew-upgrader restarted" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .PHONY: launchctl-cliproxyapi | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| launchctl-cliproxyapi: ## Restart cliproxyapi launchd agent. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @echo "🔄 Restarting cliproxyapi..." | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @launchctl kickstart -k gui/$$(id -u)/org.nix-community.home.cliproxyapi || true | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @echo "✅ cliproxyapi restarted" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .PHONY: launchctl-code-syncer | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| launchctl-code-syncer: ## Restart code-syncer launchd agent. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @echo "🔄 Restarting code-syncer..." | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @launchctl kickstart -k gui/$$(id -u)/org.nix-community.home.code-syncer || true | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @echo "✅ code-syncer restarted" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .PHONY: launchctl-dotfiles-updater | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| launchctl-dotfiles-updater: ## Restart dotfiles-updater launchd agent. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @echo "🔄 Restarting dotfiles-updater..." | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @launchctl kickstart -k gui/$$(id -u)/org.nix-community.home.dotfiles-updater || true | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @echo "✅ dotfiles-updater restarted" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .PHONY: launchctl-neverssl-keepalive | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| launchctl-neverssl-keepalive: ## Restart neverssl-keepalive launchd agent. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @echo "🔄 Restarting neverssl-keepalive..." | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @launchctl kickstart -k gui/$$(id -u)/org.nix-community.home.neverssl-keepalive || true | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @echo "✅ neverssl-keepalive restarted" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .PHONY: launchctl-ollama | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| launchctl-ollama: ## Restart ollama launchd agent. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @echo "🔄 Restarting ollama..." | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @launchctl kickstart -k gui/$$(id -u)/org.nix-community.home.ollama || true | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @echo "✅ ollama restarted" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+577
to
+609
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @echo "🔄 Restarting brew-upgrader..." | |
| @launchctl kickstart -k gui/$$(id -u)/org.nix-community.home.brew-upgrader || true | |
| @echo "✅ brew-upgrader restarted" | |
| .PHONY: launchctl-cliproxyapi | |
| launchctl-cliproxyapi: ## Restart cliproxyapi launchd agent. | |
| @echo "🔄 Restarting cliproxyapi..." | |
| @launchctl kickstart -k gui/$$(id -u)/org.nix-community.home.cliproxyapi || true | |
| @echo "✅ cliproxyapi restarted" | |
| .PHONY: launchctl-code-syncer | |
| launchctl-code-syncer: ## Restart code-syncer launchd agent. | |
| @echo "🔄 Restarting code-syncer..." | |
| @launchctl kickstart -k gui/$$(id -u)/org.nix-community.home.code-syncer || true | |
| @echo "✅ code-syncer restarted" | |
| .PHONY: launchctl-dotfiles-updater | |
| launchctl-dotfiles-updater: ## Restart dotfiles-updater launchd agent. | |
| @echo "🔄 Restarting dotfiles-updater..." | |
| @launchctl kickstart -k gui/$$(id -u)/org.nix-community.home.dotfiles-updater || true | |
| @echo "✅ dotfiles-updater restarted" | |
| .PHONY: launchctl-neverssl-keepalive | |
| launchctl-neverssl-keepalive: ## Restart neverssl-keepalive launchd agent. | |
| @echo "🔄 Restarting neverssl-keepalive..." | |
| @launchctl kickstart -k gui/$$(id -u)/org.nix-community.home.neverssl-keepalive || true | |
| @echo "✅ neverssl-keepalive restarted" | |
| .PHONY: launchctl-ollama | |
| launchctl-ollama: ## Restart ollama launchd agent. | |
| @echo "🔄 Restarting ollama..." | |
| @launchctl kickstart -k gui/$$(id -u)/org.nix-community.home.ollama || true | |
| @echo "✅ ollama restarted" | |
| @if [ "$(OS)" = "Darwin" ]; then \ | |
| echo "🔄 Restarting brew-upgrader..."; \ | |
| launchctl kickstart -k gui/$$(id -u)/org.nix-community.home.brew-upgrader || true; \ | |
| echo "✅ brew-upgrader restarted"; \ | |
| else \ | |
| echo "❌ brew-upgrader restart is only supported on macOS (Darwin)."; \ | |
| fi | |
| .PHONY: launchctl-cliproxyapi | |
| launchctl-cliproxyapi: ## Restart cliproxyapi launchd agent. | |
| @if [ "$(OS)" = "Darwin" ]; then \ | |
| echo "🔄 Restarting cliproxyapi..."; \ | |
| launchctl kickstart -k gui/$$(id -u)/org.nix-community.home.cliproxyapi || true; \ | |
| echo "✅ cliproxyapi restarted"; \ | |
| else \ | |
| echo "❌ cliproxyapi restart is only supported on macOS (Darwin)."; \ | |
| fi | |
| .PHONY: launchctl-code-syncer | |
| launchctl-code-syncer: ## Restart code-syncer launchd agent. | |
| @if [ "$(OS)" = "Darwin" ]; then \ | |
| echo "🔄 Restarting code-syncer..."; \ | |
| launchctl kickstart -k gui/$$(id -u)/org.nix-community.home.code-syncer || true; \ | |
| echo "✅ code-syncer restarted"; \ | |
| else \ | |
| echo "❌ code-syncer restart is only supported on macOS (Darwin)."; \ | |
| fi | |
| .PHONY: launchctl-dotfiles-updater | |
| launchctl-dotfiles-updater: ## Restart dotfiles-updater launchd agent. | |
| @if [ "$(OS)" = "Darwin" ]; then \ | |
| echo "🔄 Restarting dotfiles-updater..."; \ | |
| launchctl kickstart -k gui/$$(id -u)/org.nix-community.home.dotfiles-updater || true; \ | |
| echo "✅ dotfiles-updater restarted"; \ | |
| else \ | |
| echo "❌ dotfiles-updater restart is only supported on macOS (Darwin)."; \ | |
| fi | |
| .PHONY: launchctl-neverssl-keepalive | |
| launchctl-neverssl-keepalive: ## Restart neverssl-keepalive launchd agent. | |
| @if [ "$(OS)" = "Darwin" ]; then \ | |
| echo "🔄 Restarting neverssl-keepalive..."; \ | |
| launchctl kickstart -k gui/$$(id -u)/org.nix-community.home.neverssl-keepalive || true; \ | |
| echo "✅ neverssl-keepalive restarted"; \ | |
| else \ | |
| echo "❌ neverssl-keepalive restart is only supported on macOS (Darwin)."; \ | |
| fi | |
| .PHONY: launchctl-ollama | |
| launchctl-ollama: ## Restart ollama launchd agent. | |
| @if [ "$(OS)" = "Darwin" ]; then \ | |
| echo "🔄 Restarting ollama..."; \ | |
| launchctl kickstart -k gui/$$(id -u)/org.nix-community.home.ollama || true; \ | |
| echo "✅ ollama restarted"; \ | |
| else \ | |
| echo "❌ ollama restart is only supported on macOS (Darwin)."; \ | |
| fi |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -117,6 +117,12 @@ keymap({ "n", "v" }, "<leader>d", '"_d', opts) | |||||||||||||||||||||||||
| keymap("n", "<leader>gs", ":tab Git<cr>", opts) | ||||||||||||||||||||||||||
| -- @keymap <F9>: Open Git mergetool in new tab | ||||||||||||||||||||||||||
| keymap("n", "<F9>", ":tab Git mergetool<cr>", opts) | ||||||||||||||||||||||||||
| -- @keymap <leader>gg: Open LazyGit | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
| -- @keymap <leader>gg: Open LazyGit | |
| -- @keymap <leader>lg: Open LazyGit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix @keymap annotation to match <leader>lg mapping
The doc comment advertises <leader>gg while the actual mapping is <leader>lg, which will confuse any tooling that parses these @keymap annotations.
- -- @keymap <leader>gg: Open LazyGit
-keymap("n", "<leader>lg", ":LazyGit<cr>", opts)
+-- @keymap <leader>lg: Open LazyGit
+keymap("n", "<leader>lg", ":LazyGit<cr>", opts)📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| -- @keymap <leader>gg: Open LazyGit | |
| keymap("n", "<leader>lg", ":LazyGit<cr>", opts) | |
| -- @keymap <leader>gD: Open VS Code style diff | |
| keymap("n", "<leader>gD", function() | |
| require("vscode-diff").diff() | |
| end, opts) | |
| -- @keymap <leader>lg: Open LazyGit | |
| keymap("n", "<leader>lg", ":LazyGit<cr>", opts) | |
| -- @keymap <leader>gD: Open VS Code style diff | |
| keymap("n", "<leader>gD", function() | |
| require("vscode-diff").diff() | |
| end, opts) |
🤖 Prompt for AI Agents
In home-manager/programs/neovim/lua/keymaps.lua around lines 120 to 125, the
@keymap docstring incorrectly documents "<leader>gg" while the actual mapping is
"<leader>lg"; update the annotation to "@keymap <leader>lg: Open LazyGit" so the
comment matches the mapping and any tooling parsing these annotations will be
correct.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -65,6 +65,10 @@ | |
| "rev": "2d7c2db2507fa3c4956142ee607431ddb2828639", | ||
| "src": "https://github.com/stevearc/dressing.nvim" | ||
| }, | ||
| "fff.nvim": { | ||
| "rev": "9edf195c8fe71f1ab8f84e863fb27b469d2342bf", | ||
| "src": "https://github.com/dmtrKovalenko/fff.nvim" | ||
| }, | ||
|
Comment on lines
+68
to
+71
|
||
| "fidget.nvim": { | ||
| "rev": "e32b672d8fd343f9d6a76944fedb8c61d7d8111a", | ||
| "src": "https://github.com/j-hui/fidget.nvim" | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -2,4 +2,4 @@ | |||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| set -euo pipefail | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| brew upgrade | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| /opt/homebrew/bin/brew upgrade | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hardcoding the path to the
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Homebrew path is hardcoded to Apple Silicon Macs only. The absolute path Consider using a more robust approach that detects the correct Homebrew path: -/opt/homebrew/bin/brew upgrade
+if command -v brew &> /dev/null; then
+ brew upgrade
+else
+ echo "Error: brew not found in PATH" >&2
+ exit 1
+fiAlternatively, if the script is intentionally Apple Silicon-only, document this constraint clearly in a comment or README. 🤖 Prompt for AI Agents
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P3: Hardcoded Homebrew path is specific to Apple Silicon Macs. On Intel Macs, Homebrew is at Prompt for AI agents
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| /opt/homebrew/bin/brew upgrade | |
| if [ -x /opt/homebrew/bin/brew ]; then | |
| /opt/homebrew/bin/brew upgrade | |
| elif [ -x /usr/local/bin/brew ]; then | |
| /usr/local/bin/brew upgrade | |
| else | |
| echo "brew binary not found" >&2 | |
| exit 1 | |
| fi |
Copilot
AI
Dec 6, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The hardcoded path /opt/homebrew/bin/brew assumes Homebrew is installed at the default Apple Silicon location. This will fail on Intel Macs where Homebrew is at /usr/local/bin/brew. Consider checking both locations or using the PATH from the launchd agent configuration which already includes both paths.
| /opt/homebrew/bin/brew upgrade | |
| PATH="/opt/homebrew/bin:/usr/local/bin:$PATH" | |
| brew upgrade |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,19 +1,39 @@ | ||
| { pkgs, ... }: | ||
| let | ||
| inherit (pkgs) lib; | ||
| in | ||
| { | ||
| launchd.agents.cliproxyapi = pkgs.lib.mkIf pkgs.stdenv.isDarwin { | ||
| launchd.agents.cliproxyapi = lib.mkIf pkgs.stdenv.isDarwin { | ||
| enable = true; | ||
| config = { | ||
| ProgramArguments = [ | ||
| "${pkgs.bash}/bin/bash" | ||
| "${./start.sh}" | ||
| ]; | ||
| Environment = { | ||
| PATH = "${pkgs.lib.makeBinPath [ pkgs.gnused ]}:/opt/homebrew/bin:/usr/local/bin"; | ||
| PATH = "${lib.makeBinPath [ pkgs.gnused ]}:/opt/homebrew/bin:/usr/local/bin"; | ||
| }; | ||
| KeepAlive = true; | ||
| RunAtLoad = true; | ||
| StandardOutPath = "/tmp/cliproxyapi.log"; | ||
| StandardErrorPath = "/tmp/cliproxyapi.error.log"; | ||
| }; | ||
| }; | ||
|
|
||
| systemd.user.services.cliproxyapi = lib.mkIf pkgs.stdenv.isLinux { | ||
| Unit = { | ||
| Description = "CLI Proxy API server"; | ||
| After = [ "network.target" ]; | ||
| }; | ||
| Service = { | ||
| Type = "simple"; | ||
| Environment = "PATH=${lib.makeBinPath [ pkgs.gnused pkgs.bash ]}"; | ||
| ExecStart = "${pkgs.bash}/bin/bash ${./start.sh}"; | ||
| Restart = "always"; | ||
| RestartSec = 3; | ||
| }; | ||
| Install = { | ||
| WantedBy = [ "default.target" ]; | ||
| }; | ||
| }; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,25 +1,52 @@ | ||
| { pkgs }: | ||
| { pkgs, ... }: | ||
| let | ||
| inherit (pkgs) lib; | ||
| in | ||
| { | ||
| systemd.user.services.dotfiles-updater = { | ||
| launchd.agents.dotfiles-updater = lib.mkIf pkgs.stdenv.isDarwin { | ||
| enable = true; | ||
| config = { | ||
| ProgramArguments = [ | ||
| "${pkgs.bash}/bin/bash" | ||
| "${./update.sh}" | ||
| ]; | ||
| Environment = { | ||
| PATH = "${ | ||
| lib.makeBinPath [ | ||
| pkgs.git | ||
| pkgs.bash | ||
| pkgs.coreutils | ||
| ] | ||
| }:/opt/homebrew/bin:/usr/local/bin"; | ||
| }; | ||
| StartCalendarInterval = [ | ||
| { | ||
| Hour = 0; | ||
| Minute = 0; | ||
| } | ||
| ]; | ||
| StandardOutPath = "/tmp/dotfiles-updater.log"; | ||
| StandardErrorPath = "/tmp/dotfiles-updater.error.log"; | ||
| }; | ||
| }; | ||
|
Comment on lines
+6
to
+31
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: # Search for launchd configuration examples in the repository
find . -type f -name "*.nix" -exec grep -l "launchd.agents" {} \;Repository: shunkakinoki/dotfiles Length of output: 361 🏁 Script executed: # Look for any existing launchd agent configurations to see what key pattern is used
rg "launchd\.agents" -A 20 --max-count=5Repository: shunkakinoki/dotfiles Length of output: 8607 🌐 Web query:
💡 Result: nix-darwin exposes Launchd options in the launchd module. Relevant keys for environment variables:
Minimal example (nix expression): Docs / references:
🏁 Script executed: # Check how nix-darwin's launchd module actually handles the config attribute
# Search for nix-darwin source or documentation on launchd structure
rg "launchd.*config" --type nix -A 5 -B 5 | head -100Repository: shunkakinoki/dotfiles Length of output: 47 🌐 Web query:
💡 Result: Short answer: use EnvironmentVariables. Nix-darwin exposes two higher-level options — launchd.*.environment (and global launchd.envVariables / environment.variables) — which it converts into the plist key EnvironmentVariables, while serviceConfig.EnvironmentVariables lets you set the raw plist key directly. There is no separate launchd plist key named "Environment" (the correct launchd key is EnvironmentVariables). (nix-darwin.github.io) Practical notes:
If you want, tell me which nix-darwin config snippet you’re using and I’ll show the minimal example. Citations:
Change The launchd plist standard uses Change: config = {
ProgramArguments = [ ... ];
- Environment = {
+ EnvironmentVariables = {
PATH = "${...}";
};Additionally, add documentation above this block explaining what the agent does and why the PATH is customized, as per guidelines for service parameter documentation: # macOS: daily dotfiles auto-updater via launchd.
# Ensures Git/Bash/coreutils and Homebrew are on PATH under launchd.
launchd.agents.dotfiles-updater = lib.mkIf pkgs.stdenv.isDarwin {🤖 Prompt for AI Agents |
||
|
|
||
| systemd.user.services.dotfiles-updater = lib.mkIf pkgs.stdenv.isLinux { | ||
| Unit = { | ||
| Description = "Dotfiles auto-updater service"; | ||
| }; | ||
| Service = { | ||
| Type = "oneshot"; | ||
| Environment = "PATH=${ | ||
| pkgs.lib.makeBinPath ( | ||
| with pkgs; | ||
| [ | ||
| git | ||
| bash | ||
| ] | ||
| ) | ||
| lib.makeBinPath [ | ||
| pkgs.git | ||
| pkgs.bash | ||
| ] | ||
| }"; | ||
| ExecStart = "${./update.sh}"; | ||
| }; | ||
| }; | ||
|
|
||
| systemd.user.timers.dotfiles-updater = { | ||
| systemd.user.timers.dotfiles-updater = lib.mkIf pkgs.stdenv.isLinux { | ||
| Unit = { | ||
| Description = "Timer for dotfiles auto-updater"; | ||
| }; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| # Keep captive portal connections alive by periodically hitting neverssl.com | ||
|
|
||
| set -euo pipefail | ||
|
|
||
| # Silently ping neverssl.com - ignore failures (network may be unavailable) | ||
| curl -fsS --max-time 10 http://neverssl.com > /dev/null 2>&1 || true |
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,30 +1,13 @@ | ||||||||||||
| { pkgs }: | ||||||||||||
| { pkgs, ... }: | ||||||||||||
| let | ||||||||||||
| inherit (pkgs) lib writeShellApplication; | ||||||||||||
|
|
||||||||||||
| # launchd wrapper so we can reuse the Homebrew-installed ollama binary | ||||||||||||
| ollamaHomebrew = writeShellApplication { | ||||||||||||
| name = "ollama-homebrew"; | ||||||||||||
| text = '' | ||||||||||||
| set -euo pipefail | ||||||||||||
|
|
||||||||||||
| if [ -x /opt/homebrew/bin/ollama ]; then | ||||||||||||
| exec /opt/homebrew/bin/ollama "$@" | ||||||||||||
| elif [ -x /usr/local/bin/ollama ]; then | ||||||||||||
| exec /usr/local/bin/ollama "$@" | ||||||||||||
| else | ||||||||||||
| echo "ollama binary not found; install it with \"brew install ollama\"" >&2 | ||||||||||||
| exit 1 | ||||||||||||
| fi | ||||||||||||
| ''; | ||||||||||||
| }; | ||||||||||||
| inherit (pkgs) lib; | ||||||||||||
| in | ||||||||||||
| lib.mkIf pkgs.stdenv.isDarwin { | ||||||||||||
| launchd.agents.ollama = { | ||||||||||||
| { | ||||||||||||
| launchd.agents.ollama = lib.mkIf pkgs.stdenv.isDarwin { | ||||||||||||
| enable = true; | ||||||||||||
| config = { | ||||||||||||
| ProgramArguments = [ | ||||||||||||
| (lib.getExe ollamaHomebrew) | ||||||||||||
| "/opt/homebrew/bin/ollama" | ||||||||||||
| "serve" | ||||||||||||
|
Comment on lines
+10
to
11
|
||||||||||||
| "/opt/homebrew/bin/ollama" | |
| "serve" | |
| "/bin/sh" | |
| "-c" | |
| "if [ -x /opt/homebrew/bin/ollama ]; then exec /opt/homebrew/bin/ollama serve; elif [ -x /usr/local/bin/ollama ]; then exec /usr/local/bin/ollama serve; else echo 'ollama not found in Homebrew locations' >&2; exit 1; fi" |
Copilot
AI
Dec 6, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Setting OLLAMA_HOST=0.0.0.0 exposes the Ollama service on all network interfaces, making it accessible from the local network and potentially beyond. Unless this is intentional for network access, consider using 127.0.0.1 to restrict access to localhost only for better security.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion | 🟠 Major
Add documentation for service parameters.
The systemd service configuration is technically sound and follows systemd conventions correctly. However, it lacks documentation explaining the service parameters, which violates the coding guidelines.
Consider adding comments to document the configuration:
+ # Ollama AI model server service for Linux
+ # Configured to listen on all interfaces (0.0.0.0) for network access
systemd.user.services.ollama = lib.mkIf pkgs.stdenv.isLinux {
Unit = {
Description = "Ollama AI model server";
+ # Start after network is available
After = [ "network.target" ];
};
Service = {
Type = "simple";
ExecStart = "${pkgs.ollama}/bin/ollama serve";
+ # Allow network access from other machines
Environment = "OLLAMA_HOST=0.0.0.0";
+ # Restart on failure with 3-second delay
Restart = "always";
RestartSec = 3;
};Based on learnings, service configurations should include clear documentation for service parameters.
🤖 Prompt for AI Agents
In home-manager/services/ollama/default.nix around lines 21 to 36, the
systemd.user.services.ollama block lacks inline documentation for the Unit,
Service and Install parameters; add brief comments above the Unit, Service and
Install blocks describing their purpose and intent, and add short inline
comments for key fields (e.g. Description, After, Type, ExecStart with what is
being started, Environment explaining the exposed variable and value,
Restart/RestartSec semantics, and WantedBy) so readers understand why each
parameter is set and what changing them would do.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
switchtarget now depends onlaunchctl, which will fail on Linux systems sincelaunchctlis a macOS-specific command. Consider adding OS detection (e.g.,[ "$(OS)" = "Darwin" ] && $(MAKE) launchctl || true) or making the launchctl target conditional on Darwin, similar to hownix-connecthandles OS-specific logic.