Something went wrong. Try again.
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111{inputs, ...}: { flake.modules.homeManager.opencode = { pkgs, config, ... }: { programs.opencode = { package = inputs.opencode.packages.${pkgs.system}.default; enable = true; enableMcpIntegration = true;
settings = { theme = "opencode"; autoupdate = "notify"; default_agent = "default";
permission = { edit = "ask"; bash = { "rm *" = "ask"; "sudo *" = "ask"; "git push*" = "ask"; "git commit*" = "ask"; "nixos-rebuild*" = "ask"; "home-manager*" = "ask"; "ls" = "allow"; "cat" = "allow"; "grep" = "allow"; "git status" = "allow"; "git diff" = "allow"; "git log" = "allow"; "pwd" = "allow"; "*" = "ask"; }; skill = "ask"; webfetch = "allow"; doom_loop = "ask"; external_directory = "allow"; };
share = "manual";
compaction = { auto = true; prune = true; };
watcher.ignore = [ "node_modules/**" "dist/**" "build/**" ".git/**" "target/**" "result/**" ".direnv/**" ".ollama/**" ];
formatter = { prettier.disabled = false; nixfmt.disabled = false; };
tui.diff_style = "auto";
instructions = ["${config.home.homeDirectory}/AGENTS.md"];
provider = { google = { models = {}; }; };
plugin = [ "opencode-gemini-auth" "@franlol/opencode-md-table-formatter" "oh-my-opencode" ]; };
agents = { default = '' You are a helpful assistant focused on direct, practical solutions.
Keep responses concise and to the point. Prefer simple solutions over complex ones. Ask clarifying questions when requirements are unclear. ''; };
commands = { test = '' Run the full test suite and report any failures. Focus on failing tests and suggest fixes. ''; commit = '' Review staged changes and create a well-formatted git commit message. Follow conventional commits format. ''; review = '' Review the code for: - Security issues - Performance problems - Best practices violations - Potential bugs ''; }; }; };}