feat: add opencode

This commit is contained in:
Nickolaj Jepsen 2026-01-19 12:54:49 +01:00
parent aac2ae399a
commit f7157b5a1f
5 changed files with 52 additions and 0 deletions

34
flake.lock generated
View file

@ -744,6 +744,22 @@
} }
}, },
"nixpkgs_5": { "nixpkgs_5": {
"locked": {
"lastModified": 1768302833,
"narHash": "sha256-h5bRFy9bco+8QcK7rGoOiqMxMbmn21moTACofNLRMP4=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "61db79b0c6b838d9894923920b612048e1201926",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_6": {
"locked": { "locked": {
"lastModified": 1767364772, "lastModified": 1767364772,
"narHash": "sha256-fFUnEYMla8b7UKjijLnMe+oVFOz6HjijGGNS1l7dYaQ=", "narHash": "sha256-fFUnEYMla8b7UKjijLnMe+oVFOz6HjijGGNS1l7dYaQ=",
@ -780,6 +796,24 @@
"type": "github" "type": "github"
} }
}, },
"opencode": {
"inputs": {
"nixpkgs": "nixpkgs_5"
},
"locked": {
"lastModified": 1768818880,
"narHash": "sha256-ajLZVEsG/avT7pMLU4Hetm7qhuW/WlH0m1fpPeJqOu8=",
"owner": "anomalyco",
"repo": "opencode",
"rev": "08005d755b240dac3ec208aee504a76af7052de7",
"type": "github"
},
"original": {
"owner": "anomalyco",
"repo": "opencode",
"type": "github"
}
},
"pre-commit-hooks": { "pre-commit-hooks": {
"inputs": { "inputs": {
"flake-compat": "flake-compat", "flake-compat": "flake-compat",

View file

@ -61,5 +61,7 @@
dank-material-shell.url = "github:AvengeMedia/DankMaterialShell"; dank-material-shell.url = "github:AvengeMedia/DankMaterialShell";
dank-material-shell.inputs.nixpkgs.follows = "nixpkgs"; dank-material-shell.inputs.nixpkgs.follows = "nixpkgs";
dank-material-shell.inputs.dgop.follows = "dgop"; dank-material-shell.inputs.dgop.follows = "dgop";
opencode.url = "github:anomalyco/opencode";
}; };
} }

View file

@ -41,5 +41,6 @@
./postgres.nix ./postgres.nix
./python.nix ./python.nix
./tilt.nix ./tilt.nix
./opencode.nix
]; ];
} }

View file

@ -0,0 +1,14 @@
{
inputs,
pkgs,
lib,
config,
...
}: {
config = lib.mkIf config.fireproof.dev.enable {
environment.systemPackages = with inputs.opencode.packages.${pkgs.stdenv.hostPlatform.system}; [
opencode
desktop
];
};
}

View file

@ -133,6 +133,7 @@ in {
"github.copilot.chat.githubMcpServer.enabled" = true; "github.copilot.chat.githubMcpServer.enabled" = true;
"chat.customAgentInSubagent.enabled" = true; "chat.customAgentInSubagent.enabled" = true;
"inlineChat.enableV2" = true; "inlineChat.enableV2" = true;
"chat.viewSessions.orientation" = "vertical";
"chat.tools.terminal.autoApprove" = { "chat.tools.terminal.autoApprove" = {
"nix" = true; "nix" = true;