Migrate to devenv
This commit is contained in:
+36
@@ -0,0 +1,36 @@
|
||||
{ pkgs, inputs, ... }:
|
||||
|
||||
{
|
||||
languages.go = {
|
||||
enable = true;
|
||||
delve.enable = true;
|
||||
};
|
||||
|
||||
packages = with pkgs; [
|
||||
curl
|
||||
jq
|
||||
mitmproxy
|
||||
|
||||
claude-code
|
||||
opencode
|
||||
];
|
||||
|
||||
git-hooks.hooks = {
|
||||
gofmt.enable = true;
|
||||
nixfmt-rfc-style.enable = true;
|
||||
};
|
||||
|
||||
outputs = {
|
||||
proxy = pkgs.callPackage ./package.nix {
|
||||
inherit (inputs.gitignore.lib) gitignoreSource;
|
||||
};
|
||||
};
|
||||
|
||||
enterShell = ''
|
||||
export GOPATH="$PWD/.go"
|
||||
export PATH="$GOPATH/bin:$PATH"
|
||||
|
||||
#export ANTHROPIC_BASE_URL=http://localhost:8082
|
||||
#export ANTHROPIC_API_KEY=sk-cliproxy-fujin
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user