opencode hm config
This commit is contained in:
15
flake.lock
generated
15
flake.lock
generated
@@ -227,17 +227,14 @@
|
|||||||
"nixpkgs": "nixpkgs_3"
|
"nixpkgs": "nixpkgs_3"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767362052,
|
"lastModified": 1767487569,
|
||||||
"narHash": "sha256-NfrV9/JtD37WX7+H4UaFcTSnqmpSpr8f2Za+qo1duxM=",
|
"narHash": "sha256-HXi5Om11CLhjkYWPWQXG5U6hUiaJmARYvoQBbGCpmy4=",
|
||||||
"ref": "refs/heads/master",
|
"path": "/home/m3tam3re/p/NIX/nixpkgs",
|
||||||
"rev": "0b4c2efc8f4298168befc24d6a55cb732772caae",
|
"type": "path"
|
||||||
"revCount": 18,
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://code.m3ta.dev/m3tam3re/nixpkgs"
|
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"type": "git",
|
"path": "/home/m3tam3re/p/NIX/nixpkgs",
|
||||||
"url": "https://code.m3ta.dev/m3tam3re/nixpkgs"
|
"type": "path"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nix-colors": {
|
"nix-colors": {
|
||||||
|
|||||||
@@ -22,8 +22,8 @@
|
|||||||
nixpkgs-9e58ed7.url = "github:nixos/nixpkgs/9e58ed7ba759d81c98f033b7f5eba21ca68f53b0";
|
nixpkgs-9e58ed7.url = "github:nixos/nixpkgs/9e58ed7ba759d81c98f033b7f5eba21ca68f53b0";
|
||||||
nixpkgs-master.url = "github:nixos/nixpkgs/master";
|
nixpkgs-master.url = "github:nixos/nixpkgs/master";
|
||||||
|
|
||||||
m3ta-nixpkgs.url = "git+https://code.m3ta.dev/m3tam3re/nixpkgs";
|
# m3ta-nixpkgs.url = "git+https://code.m3ta.dev/m3tam3re/nixpkgs";
|
||||||
# m3ta-nixpkgs.url = "path:/home/m3tam3re/p/NIX/nixpkgs";
|
m3ta-nixpkgs.url = "path:/home/m3tam3re/p/NIX/nixpkgs";
|
||||||
#
|
#
|
||||||
nur = {
|
nur = {
|
||||||
url = "github:nix-community/NUR";
|
url = "github:nix-community/NUR";
|
||||||
|
|||||||
@@ -24,6 +24,7 @@
|
|||||||
model = "ggml-large-v3-turbo";
|
model = "ggml-large-v3-turbo";
|
||||||
notifyTimeout = 2000;
|
notifyTimeout = 2000;
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.carapace = {
|
programs.carapace = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableFishIntegration = true;
|
enableFishIntegration = true;
|
||||||
@@ -197,11 +198,6 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
agenix-cli
|
|
||||||
alejandra
|
|
||||||
bc
|
|
||||||
bun
|
|
||||||
claude-code
|
|
||||||
comma
|
comma
|
||||||
coreutils
|
coreutils
|
||||||
devenv
|
devenv
|
||||||
|
|||||||
@@ -1,5 +1,14 @@
|
|||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
|
imports = [
|
||||||
|
./opencode.nix
|
||||||
|
];
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
agenix-cli
|
||||||
|
alejandra
|
||||||
|
beads
|
||||||
|
bc
|
||||||
|
bun
|
||||||
|
claude-code
|
||||||
devpod
|
devpod
|
||||||
#devpod-desktop
|
#devpod-desktop
|
||||||
code2prompt
|
code2prompt
|
||||||
|
|||||||
50
home/features/coding/opencode.nix
Normal file
50
home/features/coding/opencode.nix
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
{
|
||||||
|
programs.opencode = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
theme = "opencode";
|
||||||
|
plugin = ["oh-my-opencode"];
|
||||||
|
mcp = {
|
||||||
|
Ref = {
|
||||||
|
type = "local";
|
||||||
|
command = [
|
||||||
|
"sh"
|
||||||
|
"-c"
|
||||||
|
"REF_API_KEY=$(cat /run/agenix/ref-key) exec bunx ref-tools-mcp@latest"
|
||||||
|
];
|
||||||
|
enabled = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
home.file.".config/opencode/oh-my-opencode.json".text = ''
|
||||||
|
{
|
||||||
|
"$schema": "https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/master/assets/oh-my-opencode.schema.json",
|
||||||
|
"agents": {
|
||||||
|
"Sisyphus": {
|
||||||
|
"model": "anthropic/claude-opus-4-5"
|
||||||
|
},
|
||||||
|
"librarian": {
|
||||||
|
"model": "anthropic/claude-sonnet-4-5"
|
||||||
|
},
|
||||||
|
"explore": {
|
||||||
|
"model": "opencode/big-pickle"
|
||||||
|
},
|
||||||
|
"oracle": {
|
||||||
|
"model": "anthropic/claude-sonnet-4-5"
|
||||||
|
},
|
||||||
|
"frontend-ui-ux-engineer": {
|
||||||
|
"model": "anthropic/claude-opus-4-5"
|
||||||
|
},
|
||||||
|
"document-writer": {
|
||||||
|
"model": "anthropic/claude-opus-4-5"
|
||||||
|
},
|
||||||
|
"multimodal-looker": {
|
||||||
|
"model": "anthropic/claude-opus-4-5"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"disabled_mcps": ["context7"]
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
}
|
||||||
@@ -21,6 +21,10 @@
|
|||||||
file = ../../secrets/wg-BR.age;
|
file = ../../secrets/wg-BR.age;
|
||||||
path = "/etc/wireguard/BR.conf";
|
path = "/etc/wireguard/BR.conf";
|
||||||
};
|
};
|
||||||
|
ref-key = {
|
||||||
|
file = ../../secrets/ref-key.age;
|
||||||
|
owner = "m3tam3re";
|
||||||
|
};
|
||||||
tailscale-key.file = ../../secrets/tailscale-key.age;
|
tailscale-key.file = ../../secrets/tailscale-key.age;
|
||||||
m3tam3re-secrets = {
|
m3tam3re-secrets = {
|
||||||
file = ../../secrets/m3tam3re-secrets.age;
|
file = ../../secrets/m3tam3re-secrets.age;
|
||||||
|
|||||||
@@ -28,6 +28,10 @@
|
|||||||
file = ../../secrets/m3tam3re-secrets.age;
|
file = ../../secrets/m3tam3re-secrets.age;
|
||||||
owner = "m3tam3re";
|
owner = "m3tam3re";
|
||||||
};
|
};
|
||||||
|
ref-key = {
|
||||||
|
file = ../../secrets/ref-key.age;
|
||||||
|
owner = "m3tam3re";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ in {
|
|||||||
"secrets/minio-root-cred.age".publicKeys = systems ++ users;
|
"secrets/minio-root-cred.age".publicKeys = systems ++ users;
|
||||||
"secrets/n8n-env.age".publicKeys = systems ++ users;
|
"secrets/n8n-env.age".publicKeys = systems ++ users;
|
||||||
"secrets/paperless-key.age".publicKeys = systems ++ users;
|
"secrets/paperless-key.age".publicKeys = systems ++ users;
|
||||||
|
"secrets/ref-key.age".publicKeys = systems ++ users;
|
||||||
"secrets/restreamer-env.age".publicKeys = systems ++ users;
|
"secrets/restreamer-env.age".publicKeys = systems ++ users;
|
||||||
"secrets/searx.age".publicKeys = systems ++ users;
|
"secrets/searx.age".publicKeys = systems ++ users;
|
||||||
"secrets/tailscale-key.age".publicKeys = systems ++ users;
|
"secrets/tailscale-key.age".publicKeys = systems ++ users;
|
||||||
|
|||||||
21
secrets/ref-key.age
Normal file
21
secrets/ref-key.age
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
age-encryption.org/v1
|
||||||
|
-> ssh-ed25519 4NLKrw ARySQU5NWBIxM1sICZMk/SU+kPMrvd3M9zs65v42hVo
|
||||||
|
3/SeIH0CpIicYOjG3Swrpt/4Nplo4parVWt3qIoW7SI
|
||||||
|
-> ssh-ed25519 5kwcsA M4GABkszkaU5TmeemgEp/iJ4myYL3fmZFrNP5wYq1iM
|
||||||
|
rOyGrD1hAMzQVBJeDTDXZPyaIyoEvDisGe7Te491Wv4
|
||||||
|
-> ssh-ed25519 9d4YIQ eyJigzNeLlC1YxambeZYE2bMzUUgMqJHtpPxlZheERg
|
||||||
|
mZsYy9QTl6EnF//u2Agt/9cKxxMZw7nJDfJV/n+dVaA
|
||||||
|
-> ssh-ed25519 3Bcr1w oEZnh+FPv7EqyKLcX5rmvTGRIZlSj1ycaFg/cTCIqiM
|
||||||
|
AlOvpd+MAAe43hLfcROQ+QIkUOPmjc1SPu3NPIEhlyc
|
||||||
|
-> ssh-rsa DQlE7w
|
||||||
|
WgdDjMGNKWgxa2QxYh33HO8JrkNeYtTqMs5Ninb0+FzJYTD+zCYWUlFEPcytp8Dl
|
||||||
|
gzGH5dwTG1Tvjig5a7IWcw8sO7AAklpU95oauq3Pi1rBq8IBBpmAjvCWb8Is9UsQ
|
||||||
|
cazsOmFHYQfmCWfd1TugIOju4ovJMmUxx6acAN6McD723Q7Ns+WVmLGS/ot2LsKE
|
||||||
|
WMXTVarDk++NhIHlwmHbVk7Nej8OwFt2xTJM3ihENtCLb46wDcBfEO4GaYHxY2dn
|
||||||
|
AjuGFTgv5U8ZjdSuktw0gMV0Eldgwk04NfX1+Ey0dDSJ2/f4i4O1AqQZ3ylhBrhv
|
||||||
|
aVS/XQxmJphSlSux5puquGtJIyI+vTUWPlQ0zIAGuKCmXQ9K5FKxdOmsl73/fBqj
|
||||||
|
rpWUX6YQ9993fUpVvnCRjOThG6x8L90J5MfksgJKNP6QPDc7r2aV8p5vzY0ssE2B
|
||||||
|
JYvhRYGp0esP/DyMSczExQRpAfhNwS6ONhDjcmTRJAeaxuyteTOyypGG5morzQq9
|
||||||
|
|
||||||
|
--- 3dwuxoM7PjwyPI6fn5lRwxonntFxBNCREh0LipP7IRI
|
||||||
|
V‚‡lÝžŽçU[`Û´Hxn~¹:šŠzi\Ñ¥ƒWm«Åc_ÞÓfÍå->
|
||||||
Reference in New Issue
Block a user