opencode
This commit is contained in:
parent
8f0492f03b
commit
06a7210579
6
.gitattributes
vendored
6
.gitattributes
vendored
@ -1,4 +1,2 @@
|
||||
etcnixos/secrets/secureboot.tar filter=git-crypt diff=git-crypt
|
||||
etcnixos/secrets/wifi-passwords.nix filter=git-crypt diff=git-crypt
|
||||
etcnixos/secrets/disk-password filter=git-crypt diff=git-crypt
|
||||
etcnixos/secrets/password-hash filter=git-crypt diff=git-crypt
|
||||
/etcnixos/secrets/** filter=git-crypt diff=git-crypt
|
||||
/home-manager/secrets/** filter=git-crypt diff=git-crypt
|
||||
|
||||
@ -114,6 +114,7 @@ in
|
||||
imports = [
|
||||
./progs/fish.nix
|
||||
./progs/helix.nix
|
||||
./progs/opencode.nix
|
||||
(
|
||||
{ ... }:
|
||||
{
|
||||
|
||||
29
home-manager/progs/opencode.nix
Normal file
29
home-manager/progs/opencode.nix
Normal file
@ -0,0 +1,29 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
programs.opencode = {
|
||||
enable = true;
|
||||
rules = "";
|
||||
settings = {
|
||||
theme = "opencode";
|
||||
model = "moonshotai/kimi-k2-thinking";
|
||||
autoshare = false;
|
||||
autoupdate = true;
|
||||
provider = {
|
||||
openrouter = {
|
||||
models = {
|
||||
# put models here
|
||||
};
|
||||
options = {
|
||||
# TODO! use agenix here instead
|
||||
apiKey = "{file:${../secrets/openrouter_api_key}}";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
BIN
home-manager/secrets/openrouter_api_key
Normal file
BIN
home-manager/secrets/openrouter_api_key
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user