Unpin opencode

This commit is contained in:
Martin Pander
2026-07-01 15:29:49 +02:00
parent bebb12d20d
commit 653ec4e4af
7 changed files with 43 additions and 68 deletions

View File

@@ -52,7 +52,7 @@ in
(lib.mkIf cfg.enable {
home.packages =
(lib.optional cfg.claude-code.enable pkgs.unstable.claude-code) ++
(lib.optional cfg.opencode.enable (pkgs.opencode-pinned or pkgs.unstable.opencode)) ++
(lib.optional cfg.opencode.enable pkgs.unstable.opencode) ++
(lib.optional cfg.gemini-cli.enable pkgs.unstable.gemini-cli) ++
(lib.optional cfg.pi.enable inputs.llm-agents.packages.${pkgs.stdenv.hostPlatform.system}.pi) ++
(lib.optional (cfg.bubblewrap.enable && pkgs.stdenv.isLinux) pkgs.unstable.bubblewrap);

View File

@@ -58,7 +58,7 @@ in
"claude-sonnet-4-6-default" = { name = "Sonnet 4.6"; };
"claude-haiku-4-5-20251001" = { name = "Haiku 4.5"; };
};
whitelist = ["claude-opus-4-7-default" "claude-opus-4-6-default" "claude-sonnet-4-6-default" "claude-haiku-4-5-20251001"];
whitelist = ["claude-opus-4-8-default" "claude-opus-4-7-default" "claude-opus-4-6-default" "claude-sonnet-4-6-default" "claude-haiku-4-5-20251001"];
};
# ollama = {
# npm = "@ai-sdk/openai-compatible";

View File

@@ -148,6 +148,13 @@ in
${lib.optionalString cfg.workMode ''
bind C-s display-popup -E "projectSelector"
bind C-n display-popup -E -xC -yC -w 95% -h 95% -d "/mnt/c/Users/marti/Documents/notes/Work/" "vim quick_notes.md"
bind C-q display-popup -E -xC -yC -w 95% -h 95% " \
SESSION_NAME=\$(tmux display-message -p '#S'); \
if [ \"\$SESSION_NAME\" = 'misc' ]; then \
cd '/mnt/c/Users/marti/Documents/notes/Work/' && vim task_notes.md; \
else \
cd \"\$HOME/pro/\$SESSION_NAME\" && vim task_notes.md; \
fi"
bind C-p display-popup -E -xC -yC -w 95% -h 95% -d "/mnt/c/Users/marti/Documents/notes/Work/development/" "vim mbpr.md"
''}

View File

@@ -323,6 +323,8 @@ require("conform").setup({
sh = {"shfmt"},
bash = {"shfmt"},
zsh = {"shfmt"},
c = {"clang-format"},
cpp = {"clang-format"},
},
format_on_save = {
timeout_ms = 500,
@@ -463,7 +465,7 @@ require("obsidian").setup({
time_format = "%H:%M",
},
checkbox = {
order = { " ", ">", "x", "!", "~" },
order = { " ", ">", "x", "!", "~", "" },
},
frontmatter = {
enabled = true,

View File

@@ -1,13 +0,0 @@
# Overlay to provide a pinned version of opencode
# This pins opencode to a specific nixpkgs commit to avoid issues
# with the latest unstable version (segfaults).
#
# Usage: Pass nixpkgs-opencode input when applying overlay:
# overlays = [ (import ./modules/overlays/opencode.nix nixpkgs-opencode) ];
nixpkgs-opencode: final: prev: {
opencode-pinned = (import nixpkgs-opencode {
inherit (prev) system;
config.allowUnfree = true;
}).opencode;
}