From 55aac2c9102b542e6ddd971fa3d00d7a7a5690b5 Mon Sep 17 00:00:00 2001 From: m3tm3re
Date: Mon, 13 Apr 2026 19:18:25 +0200 Subject: [PATCH 1/3] fix: silence nix evaluation warnings for neovim/opencode/system --- home/common/default.nix | 3 + home/features/coding/opencode.nix | 150 +++++++++++++++++------------- overlays/default.nix | 2 +- 3 files changed, 87 insertions(+), 68 deletions(-) diff --git a/home/common/default.nix b/home/common/default.nix index a8be118..6e1197f 100644 --- a/home/common/default.nix +++ b/home/common/default.nix @@ -53,4 +53,7 @@ }; }; colorScheme = inputs.nix-colors.colorSchemes.dracula; + + # Explicitly set new HM 26.05 default to silence legacy warning on older stateVersion. + programs.neovim.withRuby = lib.mkDefault false; } diff --git a/home/features/coding/opencode.nix b/home/features/coding/opencode.nix index 5e4ab9f..9caa29c 100644 --- a/home/features/coding/opencode.nix +++ b/home/features/coding/opencode.nix @@ -1,4 +1,8 @@ -{inputs, ...}: { +{ + inputs, + lib, + ... +}: { coding.agents.opencode = { enable = true; agentsInput = inputs.agents; @@ -17,72 +21,6 @@ coding.opencode = { enable = true; - # AZ-Gruppe LiteLLM endpoint + available models - extraSettings = { - provider = { - litellm = { - npm = "@ai-sdk/openai-compatible"; - name = "LiteLLM (AZ-Gruppe)"; - options.baseURL = "https://llm.az-gruppe.com/v1"; - models = { - "gpt-5.2" = { - name = "GPT-5.2"; - limit = { - context = 400000; - output = 128000; - }; - }; - "gpt-5.3-codex" = { - name = "GPT-5.3 Codex"; - limit = { - context = 400000; - output = 128000; - }; - }; - "claude-haiku-4-5" = { - name = "Claude Haiku 4.5"; - options = { - thinking = { - type = "enabled"; - budget_tokens = 16000; - }; - }; - limit = { - context = 200000; - output = 64000; - }; - }; - "claude-sonnet-4-6" = { - name = "Claude Sonnet 4.6"; - options = { - thinking = { - type = "enabled"; - budget_tokens = 16000; - }; - }; - limit = { - context = 200000; - output = 64000; - }; - }; - "claude-opus-4-6" = { - name = "Claude Opus 4.6"; - options = { - thinking = { - type = "enabled"; - budget_tokens = 16000; - }; - }; - limit = { - context = 200000; - output = 128000; - }; - }; - }; - }; - }; - }; - ohMyOpencodeSettings = { agents = { sisyphus.model = "litellm/claude-opus-4-6"; @@ -107,4 +45,82 @@ }; }; }; + + # Keep TUI settings in programs.opencode.tui to satisfy OpenCode v1.2.15+. + programs.opencode.tui.theme = "opencode"; + + # Override legacy default settings to avoid deprecated TUI keys in settings. + programs.opencode.settings = lib.mkForce { + plugin = ["oh-my-openagent"]; + formatter = { + alejandra = { + command = ["alejandra" "-q" "-"]; + extensions = [".nix"]; + }; + }; + + # AZ-Gruppe LiteLLM endpoint + available models + provider = { + litellm = { + npm = "@ai-sdk/openai-compatible"; + name = "LiteLLM (AZ-Gruppe)"; + options.baseURL = "https://llm.az-gruppe.com/v1"; + models = { + "gpt-5.2" = { + name = "GPT-5.2"; + limit = { + context = 400000; + output = 128000; + }; + }; + "gpt-5.3-codex" = { + name = "GPT-5.3 Codex"; + limit = { + context = 400000; + output = 128000; + }; + }; + "claude-haiku-4-5" = { + name = "Claude Haiku 4.5"; + options = { + thinking = { + type = "enabled"; + budget_tokens = 16000; + }; + }; + limit = { + context = 200000; + output = 64000; + }; + }; + "claude-sonnet-4-6" = { + name = "Claude Sonnet 4.6"; + options = { + thinking = { + type = "enabled"; + budget_tokens = 16000; + }; + }; + limit = { + context = 200000; + output = 64000; + }; + }; + "claude-opus-4-6" = { + name = "Claude Opus 4.6"; + options = { + thinking = { + type = "enabled"; + budget_tokens = 16000; + }; + }; + limit = { + context = 200000; + output = 128000; + }; + }; + }; + }; + }; + }; } diff --git a/overlays/default.nix b/overlays/default.nix index 3d30474..00ced70 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -27,7 +27,7 @@ temp-packages = final: _prev: { temp = import inputs.nixpkgs-9e9486b { - system = final.system; + system = final.stdenv.hostPlatform.system; config.allowUnfree = true; }; }; From 4684c5dc3e15d696426bd9a597f4ba8d59521a9e Mon Sep 17 00:00:00 2001 From: m3tm3re
Date: Mon, 13 Apr 2026 19:23:49 +0200 Subject: [PATCH 2/3] chore: include local changes and bump home-manager state to 26.05 --- .pi-lens/cache/jscpd.json | 7 ++++ .pi-lens/cache/jscpd.meta.json | 3 ++ .pi-lens/cache/knip.json | 9 +++++ .pi-lens/cache/knip.meta.json | 3 ++ .pi-lens/cache/session-start-guidance.json | 1 + .../cache/session-start-guidance.meta.json | 3 ++ .pi-lens/cache/todo-baseline.json | 3 ++ .pi-lens/cache/todo-baseline.meta.json | 3 ++ .pi-lens/turn-state.json | 6 +++ flake.lock | 38 +++++++++++-------- home/common/default.nix | 3 -- home/m3tam3re/home-server.nix | 2 +- home/m3tam3re/home.nix | 2 +- hosts/m3-ares/default.nix | 2 +- 14 files changed, 63 insertions(+), 22 deletions(-) create mode 100644 .pi-lens/cache/jscpd.json create mode 100644 .pi-lens/cache/jscpd.meta.json create mode 100644 .pi-lens/cache/knip.json create mode 100644 .pi-lens/cache/knip.meta.json create mode 100644 .pi-lens/cache/session-start-guidance.json create mode 100644 .pi-lens/cache/session-start-guidance.meta.json create mode 100644 .pi-lens/cache/todo-baseline.json create mode 100644 .pi-lens/cache/todo-baseline.meta.json create mode 100644 .pi-lens/turn-state.json diff --git a/.pi-lens/cache/jscpd.json b/.pi-lens/cache/jscpd.json new file mode 100644 index 0000000..ee25c61 --- /dev/null +++ b/.pi-lens/cache/jscpd.json @@ -0,0 +1,7 @@ +{ + "success": true, + "clones": [], + "duplicatedLines": 0, + "totalLines": 0, + "percentage": 0 +} \ No newline at end of file diff --git a/.pi-lens/cache/jscpd.meta.json b/.pi-lens/cache/jscpd.meta.json new file mode 100644 index 0000000..d1b05fc --- /dev/null +++ b/.pi-lens/cache/jscpd.meta.json @@ -0,0 +1,3 @@ +{ + "timestamp": "2026-04-13T17:20:59.675Z" +} \ No newline at end of file diff --git a/.pi-lens/cache/knip.json b/.pi-lens/cache/knip.json new file mode 100644 index 0000000..a4147c6 --- /dev/null +++ b/.pi-lens/cache/knip.json @@ -0,0 +1,9 @@ +{ + "success": false, + "issues": [], + "unusedExports": [], + "unusedFiles": [], + "unusedDeps": [], + "unlistedDeps": [], + "summary": "Failed to parse output" +} \ No newline at end of file diff --git a/.pi-lens/cache/knip.meta.json b/.pi-lens/cache/knip.meta.json new file mode 100644 index 0000000..334f010 --- /dev/null +++ b/.pi-lens/cache/knip.meta.json @@ -0,0 +1,3 @@ +{ + "timestamp": "2026-04-13T17:21:02.639Z" +} \ No newline at end of file diff --git a/.pi-lens/cache/session-start-guidance.json b/.pi-lens/cache/session-start-guidance.json new file mode 100644 index 0000000..ec747fa --- /dev/null +++ b/.pi-lens/cache/session-start-guidance.json @@ -0,0 +1 @@ +null \ No newline at end of file diff --git a/.pi-lens/cache/session-start-guidance.meta.json b/.pi-lens/cache/session-start-guidance.meta.json new file mode 100644 index 0000000..24a2474 --- /dev/null +++ b/.pi-lens/cache/session-start-guidance.meta.json @@ -0,0 +1,3 @@ +{ + "timestamp": "2026-04-13T17:10:08.137Z" +} \ No newline at end of file diff --git a/.pi-lens/cache/todo-baseline.json b/.pi-lens/cache/todo-baseline.json new file mode 100644 index 0000000..fc69ce2 --- /dev/null +++ b/.pi-lens/cache/todo-baseline.json @@ -0,0 +1,3 @@ +{ + "items": [] +} \ No newline at end of file diff --git a/.pi-lens/cache/todo-baseline.meta.json b/.pi-lens/cache/todo-baseline.meta.json new file mode 100644 index 0000000..16823bb --- /dev/null +++ b/.pi-lens/cache/todo-baseline.meta.json @@ -0,0 +1,3 @@ +{ + "timestamp": "2026-04-13T17:09:05.936Z" +} \ No newline at end of file diff --git a/.pi-lens/turn-state.json b/.pi-lens/turn-state.json new file mode 100644 index 0000000..a9abfd7 --- /dev/null +++ b/.pi-lens/turn-state.json @@ -0,0 +1,6 @@ +{ + "files": {}, + "turnCycles": 0, + "maxCycles": 3, + "lastUpdated": "2026-04-13T17:21:02.639Z" +} \ No newline at end of file diff --git a/flake.lock b/flake.lock index 238009a..ac47896 100644 --- a/flake.lock +++ b/flake.lock @@ -26,14 +26,17 @@ "nixpkgs": "nixpkgs_2" }, "locked": { - "lastModified": 1775879794, - "narHash": "sha256-4BN5pGaEXREaDi2uZ8hU8nROUZr4ps9TwkN3eb/wMIo=", - "path": "/home/m3tam3re/p/AI/AGENTS", - "type": "path" + "lastModified": 1776092721, + "narHash": "sha256-avV4Snqp0K57I9s8D61+GHlg9DYZFSIvjaS4d4RYpG8=", + "ref": "refs/heads/master", + "rev": "0ad41acb03eee0e22cba611b2171a3d3ee30cb10", + "revCount": 72, + "type": "git", + "url": "https://code.m3ta.dev/m3tam3re/AGENTS" }, "original": { - "path": "/home/m3tam3re/p/AI/AGENTS", - "type": "path" + "type": "git", + "url": "https://code.m3ta.dev/m3tam3re/AGENTS" } }, "base16-schemes": { @@ -429,14 +432,17 @@ "openspec": "openspec" }, "locked": { - "lastModified": 1775881067, - "narHash": "sha256-PutNWyXD08PmouVLZBksCLcywHowUE/YrVTNs5Rr6Ls=", - "path": "/home/m3tam3re/p/NIX/nixpkgs", - "type": "path" + "lastModified": 1776099116, + "narHash": "sha256-2Mg1ZVXJSLbNFvpzk2pmkc768pRMXLSJJAOqLdQ65Qg=", + "ref": "refs/heads/master", + "rev": "613e9223e4ffb6cca721d5f6dc5ff0d95ab8993c", + "revCount": 225, + "type": "git", + "url": "https://code.m3ta.dev/m3tam3re/nixpkgs" }, "original": { - "path": "/home/m3tam3re/p/NIX/nixpkgs", - "type": "path" + "type": "git", + "url": "https://code.m3ta.dev/m3tam3re/nixpkgs" } }, "nix-colors": { @@ -776,16 +782,16 @@ ] }, "locked": { - "lastModified": 1775461158, - "narHash": "sha256-FiQzBj3C0sAnKU+WMktliqt0zM3YQDrgQbner1LOTi8=", + "lastModified": 1775782812, + "narHash": "sha256-m+Ue7FWiTjKMAn1QefAwOMfOb2Vybk0mJPV9zcbkOmE=", "owner": "anomalyco", "repo": "opencode", - "rev": "517e6c9aa4c61dbc125e7654fc596f1d529f20d9", + "rev": "877be7e8e04142cd8fbebcb5e6c4b9617bf28cce", "type": "github" }, "original": { "owner": "anomalyco", - "ref": "v1.3.17", + "ref": "v1.4.3", "repo": "opencode", "type": "github" } diff --git a/home/common/default.nix b/home/common/default.nix index 6e1197f..a8be118 100644 --- a/home/common/default.nix +++ b/home/common/default.nix @@ -53,7 +53,4 @@ }; }; colorScheme = inputs.nix-colors.colorSchemes.dracula; - - # Explicitly set new HM 26.05 default to silence legacy warning on older stateVersion. - programs.neovim.withRuby = lib.mkDefault false; } diff --git a/home/m3tam3re/home-server.nix b/home/m3tam3re/home-server.nix index d08932d..90762c1 100644 --- a/home/m3tam3re/home-server.nix +++ b/home/m3tam3re/home-server.nix @@ -19,7 +19,7 @@ # You should not change this value, even if you update Home Manager. If you do # want to update the value, then make sure to first check the Home Manager # release notes. - home.stateVersion = "24.11"; # Please read the comment before changing. + home.stateVersion = "26.05"; # Updated to adopt HM 26.05 defaults. # The home.packages option allows you to install Nix packages into your # environment. diff --git a/home/m3tam3re/home.nix b/home/m3tam3re/home.nix index 780abe3..a3e7ccb 100644 --- a/home/m3tam3re/home.nix +++ b/home/m3tam3re/home.nix @@ -19,7 +19,7 @@ # You should not change this value, even if you update Home Manager. If you do # want to update the value, then make sure to first check the Home Manager # release notes. - home.stateVersion = "24.11"; # Please read the comment before changing. + home.stateVersion = "26.05"; # Updated to adopt HM 26.05 defaults. # The home.packages option allows you to install Nix packages into your # environment. diff --git a/hosts/m3-ares/default.nix b/hosts/m3-ares/default.nix index 36a9237..695069b 100644 --- a/hosts/m3-ares/default.nix +++ b/hosts/m3-ares/default.nix @@ -44,7 +44,7 @@ extraServices = { flatpak.enable = true; - ollama.enable = true; + ollama.enable = false; podman.enable = true; virtualisation.enable = true; }; From 53a30c7af3ad01d3777f2c7caabba4b93b47e1f4 Mon Sep 17 00:00:00 2001 From: m3tm3re
Date: Mon, 13 Apr 2026 19:35:58 +0200 Subject: [PATCH 3/3] chore: ignore .pi-lens artifacts and untrack cached files --- .gitignore | 3 +++ .pi-lens/cache/jscpd.json | 7 ------- .pi-lens/cache/jscpd.meta.json | 3 --- .pi-lens/cache/knip.json | 9 --------- .pi-lens/cache/knip.meta.json | 3 --- .pi-lens/cache/session-start-guidance.json | 1 - .pi-lens/cache/session-start-guidance.meta.json | 3 --- .pi-lens/cache/todo-baseline.json | 3 --- .pi-lens/cache/todo-baseline.meta.json | 3 --- .pi-lens/turn-state.json | 6 ------ 10 files changed, 3 insertions(+), 38 deletions(-) delete mode 100644 .pi-lens/cache/jscpd.json delete mode 100644 .pi-lens/cache/jscpd.meta.json delete mode 100644 .pi-lens/cache/knip.json delete mode 100644 .pi-lens/cache/knip.meta.json delete mode 100644 .pi-lens/cache/session-start-guidance.json delete mode 100644 .pi-lens/cache/session-start-guidance.meta.json delete mode 100644 .pi-lens/cache/todo-baseline.json delete mode 100644 .pi-lens/cache/todo-baseline.meta.json delete mode 100644 .pi-lens/turn-state.json diff --git a/.gitignore b/.gitignore index 78f436a..8329ee3 100644 --- a/.gitignore +++ b/.gitignore @@ -40,3 +40,6 @@ opencode.json # Pi project-local packages (if using pi install -l) .pi/npm/ + +# Pi Lens local cache/runtime artifacts +.pi-lens/ diff --git a/.pi-lens/cache/jscpd.json b/.pi-lens/cache/jscpd.json deleted file mode 100644 index ee25c61..0000000 --- a/.pi-lens/cache/jscpd.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "success": true, - "clones": [], - "duplicatedLines": 0, - "totalLines": 0, - "percentage": 0 -} \ No newline at end of file diff --git a/.pi-lens/cache/jscpd.meta.json b/.pi-lens/cache/jscpd.meta.json deleted file mode 100644 index d1b05fc..0000000 --- a/.pi-lens/cache/jscpd.meta.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "timestamp": "2026-04-13T17:20:59.675Z" -} \ No newline at end of file diff --git a/.pi-lens/cache/knip.json b/.pi-lens/cache/knip.json deleted file mode 100644 index a4147c6..0000000 --- a/.pi-lens/cache/knip.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "success": false, - "issues": [], - "unusedExports": [], - "unusedFiles": [], - "unusedDeps": [], - "unlistedDeps": [], - "summary": "Failed to parse output" -} \ No newline at end of file diff --git a/.pi-lens/cache/knip.meta.json b/.pi-lens/cache/knip.meta.json deleted file mode 100644 index 334f010..0000000 --- a/.pi-lens/cache/knip.meta.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "timestamp": "2026-04-13T17:21:02.639Z" -} \ No newline at end of file diff --git a/.pi-lens/cache/session-start-guidance.json b/.pi-lens/cache/session-start-guidance.json deleted file mode 100644 index ec747fa..0000000 --- a/.pi-lens/cache/session-start-guidance.json +++ /dev/null @@ -1 +0,0 @@ -null \ No newline at end of file diff --git a/.pi-lens/cache/session-start-guidance.meta.json b/.pi-lens/cache/session-start-guidance.meta.json deleted file mode 100644 index 24a2474..0000000 --- a/.pi-lens/cache/session-start-guidance.meta.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "timestamp": "2026-04-13T17:10:08.137Z" -} \ No newline at end of file diff --git a/.pi-lens/cache/todo-baseline.json b/.pi-lens/cache/todo-baseline.json deleted file mode 100644 index fc69ce2..0000000 --- a/.pi-lens/cache/todo-baseline.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "items": [] -} \ No newline at end of file diff --git a/.pi-lens/cache/todo-baseline.meta.json b/.pi-lens/cache/todo-baseline.meta.json deleted file mode 100644 index 16823bb..0000000 --- a/.pi-lens/cache/todo-baseline.meta.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "timestamp": "2026-04-13T17:09:05.936Z" -} \ No newline at end of file diff --git a/.pi-lens/turn-state.json b/.pi-lens/turn-state.json deleted file mode 100644 index a9abfd7..0000000 --- a/.pi-lens/turn-state.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "files": {}, - "turnCycles": 0, - "maxCycles": 3, - "lastUpdated": "2026-04-13T17:21:02.639Z" -} \ No newline at end of file