Skip to content

Commit

Permalink
ghostty revert to 1.0.1 for now. ghostty-org/ghostty#5494
Browse files Browse the repository at this point in the history
  • Loading branch information
karitham committed Feb 10, 2025
1 parent e169912 commit fbb8c97
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 20 deletions.
17 changes: 17 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 9 additions & 5 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
stable.url = "github:nixos/nixpkgs?rev=f7b11968ea1d19496487f6afaac99c130a87c1ff";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
Expand Down Expand Up @@ -30,16 +31,19 @@
flake = false;
};
};
outputs = inputs @ {
self,
nixpkgs,
...
}: let
outputs = inputs @ {nixpkgs, ...}: let
# Common modules used across all systems
commonModules = [
./modules/shell.nix
./modules/fonts.nix
./modules/nixos/shell.nix
({inputs, ...}: {
nixpkgs.overlays = [
(final: prev: {
ghostty = inputs.stable.legacyPackages.${prev.system}.ghostty;
})
];
})
];

# Unified system configuration
Expand Down
40 changes: 25 additions & 15 deletions modules/home/helix.nix
Original file line number Diff line number Diff line change
Expand Up @@ -97,30 +97,40 @@
# config = ./typos.toml;
};
};
golangci-lint-lsp = {
command = "golangci-lint-langserver";
config = {
command = [
"golangci-lint"
"run"
"--config"
"~/.golangci.yml"
"--out-format"
"json"
"--issues-exit-code=1"
];
};
};

lsp-ai = {
command = "lsp-ai";
config = {
memory.file_store = {};
models = {
main = {
models = rec {
smart = {
type = "anthropic";
chat_endpoint = "https://api.anthropic.com/v1/messages";
model = "claude-3-5-sonnet-latest";
auth_token_env_var_name = "ANTHROPIC_API_KEY";
};
fast = {
type = "anthropic";
chat_endpoint = "https://api.anthropic.com/v1/messages";
model = "claude-3-5-haiku-latest";
auth_token_env_var_name = "ANTHROPIC_API_KEY";
};
};
completion = {
model = "fast";
parameters = {
max_tokens = 128;
max_context = 4096;
type = "open_ai";
completions_endpoint = "https://api.fireworks.ai/inference/v1/completions";
chat_endpoint = "https://api.fireworks.ai/inference/v1/chat/completions";
model = "accounts/fireworks/models/qwen2p5-coder-32b-instruct";
auth_token_env_var_name = "FIREWORKS_API_KEY";
};
main = fast;
};
chat = [
{
Expand All @@ -139,7 +149,7 @@
model = "main";
parameters = {
max_tokens = 1024;
max_context = 4096;
max_context = 8192;
system = "You are a code assistant chatbot. The user will ask you for assistance coding and you will do you best to answer succinctly and accurately given the code context:\n\n{CONTEXT}";
};
}
Expand Down Expand Up @@ -319,7 +329,7 @@
}
{
name = "ruby";
language-servers = ["solargraph" "lsp-ai"];
language-servers = ["solargraph" "lsp-ai" "typos"];
auto-format = true;
formatter = {
command = "rubocop";
Expand Down

0 comments on commit fbb8c97

Please sign in to comment.