feat(programs): add opencode configuration
Enable 'opencode.nix' and update associated configurations.
This commit is contained in:
@@ -42,6 +42,7 @@
|
|||||||
./yt-dlp.nix
|
./yt-dlp.nix
|
||||||
./zoxide.nix
|
./zoxide.nix
|
||||||
./neovim.nix
|
./neovim.nix
|
||||||
|
./opencode.nix
|
||||||
|
|
||||||
# ./goread.nix
|
# ./goread.nix
|
||||||
# ./helix.nix
|
# ./helix.nix
|
||||||
|
|||||||
5
home/programs/opencode.nix
Normal file
5
home/programs/opencode.nix
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{...}: {
|
||||||
|
programs.opencode = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,7 +1,15 @@
|
|||||||
{device, ...}: {
|
{
|
||||||
|
device,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
programs.eww = {
|
programs.eww = {
|
||||||
enable = device.is "ryu";
|
enable = device.is "ryu";
|
||||||
enableFishIntegration = true;
|
enableFishIntegration = true;
|
||||||
configDir = ./eww;
|
|
||||||
};
|
};
|
||||||
|
# xdg.configFile = {
|
||||||
|
# eww = {
|
||||||
|
# source = "${config.home.homeDirectory}/Projects/dotfiles/home/services/eww";
|
||||||
|
# };
|
||||||
|
# };
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -51,7 +51,7 @@
|
|||||||
transform = 0;
|
transform = 0;
|
||||||
supports_wide_color = 1;
|
supports_wide_color = 1;
|
||||||
supports_hdr = 1;
|
supports_hdr = 1;
|
||||||
# bitdepth = 10;
|
bitdepth = 10;
|
||||||
# cm = "hdr";
|
# cm = "hdr";
|
||||||
# sdrbrightness = 0.005;
|
# sdrbrightness = 0.005;
|
||||||
# sdrsaturation = 200;
|
# sdrsaturation = 200;
|
||||||
|
|||||||
@@ -728,6 +728,12 @@ in {
|
|||||||
end,
|
end,
|
||||||
{})
|
{})
|
||||||
|
|
||||||
|
vim.api.nvim_create_user_command('DapUiToggle',
|
||||||
|
function()
|
||||||
|
require('dapui').toggle()
|
||||||
|
end,
|
||||||
|
{})
|
||||||
|
|
||||||
local iron = require("iron.core")
|
local iron = require("iron.core")
|
||||||
iron.setup({
|
iron.setup({
|
||||||
config = {
|
config = {
|
||||||
@@ -839,5 +845,6 @@ in {
|
|||||||
pkgs.lua
|
pkgs.lua
|
||||||
pkgs.ripgrep
|
pkgs.ripgrep
|
||||||
pkgs.nodejs-slim
|
pkgs.nodejs-slim
|
||||||
|
pkgs.qwen-code
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,13 +8,13 @@
|
|||||||
llama-cpp = {
|
llama-cpp = {
|
||||||
enable = false;
|
enable = false;
|
||||||
port = 11345;
|
port = 11345;
|
||||||
model = "/nix/store/ch6z9di3l0k54ad29pzv8k3zv47q30d1-Qwen3-Coder-30B-A3B-Instruct-Q4_K_M.gguf";
|
# model = "/nix/store/ch6z9di3l0k54ad29pzv8k3zv47q30d1-Qwen3-Coder-30B-A3B-Instruct-Q4_K_M.gguf";
|
||||||
# model = pkgs.fetchurl {
|
model = pkgs.fetchurl {
|
||||||
# # url = "https://huggingface.co/lmstudio-community/gpt-oss-20b-GGUF/resolve/main/gpt-oss-20b-MXFP4.gguf";
|
# url = "https://huggingface.co/lmstudio-community/gpt-oss-20b-GGUF/resolve/main/gpt-oss-20b-MXFP4.gguf";
|
||||||
# # sha256 = "65d06d31a3977d553cb3af137b5c26b5f1e9297a6aaa29ae7caa98788cde53ab";
|
# sha256 = "65d06d31a3977d553cb3af137b5c26b5f1e9297a6aaa29ae7caa98788cde53ab";
|
||||||
# url = "https://huggingface.co/lmstudio-community/Qwen3-Coder-30B-A3B-Instruct-GGUF/resolve/main/Qwen3-Coder-30B-A3B-Instruct-Q4_K_M.gguf";
|
url = "https://huggingface.co/lmstudio-community/Qwen3-Coder-30B-A3B-Instruct-GGUF/resolve/main/Qwen3-Coder-30B-A3B-Instruct-Q4_K_M.gguf";
|
||||||
# sha256 = "79ad15a5ee3caddc3f4ff0db33a14454a5a3eb503d7fa1c1e35feafc579de486";
|
sha256 = "79ad15a5ee3caddc3f4ff0db33a14454a5a3eb503d7fa1c1e35feafc579de486";
|
||||||
# };
|
};
|
||||||
extraFlags = [
|
extraFlags = [
|
||||||
"-c"
|
"-c"
|
||||||
"98304"
|
"98304"
|
||||||
|
|||||||
Reference in New Issue
Block a user