Solved: Avante works; WIP: Avante markdown; Added: Programs
This commit is contained in:
@@ -1,10 +1,21 @@
|
||||
{ primaryUser, inputs, ... }: {
|
||||
imports = [
|
||||
inputs.nixvim.homeModules.nixvim
|
||||
./neovim
|
||||
|
||||
./packages.nix
|
||||
./git.nix
|
||||
./shell.nix
|
||||
|
||||
inputs.nixvim.homeModules.nixvim
|
||||
./neovim
|
||||
|
||||
inputs.nixcord.homeModules.nixcord
|
||||
./nixcord.nix
|
||||
|
||||
inputs.spicetify-nix.homeManagerModules.default
|
||||
./spicetify.nix
|
||||
|
||||
./floorp.nix
|
||||
./obsidian.nix
|
||||
];
|
||||
|
||||
home = {
|
||||
|
||||
7
home/floorp.nix
Normal file
7
home/floorp.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
_: {
|
||||
programs.floorp = {
|
||||
enable = true;
|
||||
# darwinDefaultsId = "com.developer.app";
|
||||
|
||||
};
|
||||
}
|
||||
@@ -100,6 +100,20 @@
|
||||
hl_shortcut = "Keyword";
|
||||
};
|
||||
}
|
||||
{
|
||||
type = "button";
|
||||
val = "[A] Open Prompt";
|
||||
#on_press.__raw = "function() require('yazi').yazi() end";
|
||||
opts = {
|
||||
keymap = [ "n" "a" ":AvanteChatNew<CR>" { } ];
|
||||
shortcut = "y";
|
||||
position = "center";
|
||||
cursor = 3;
|
||||
width = 50;
|
||||
align_shortcut = "right";
|
||||
hl_shortcut = "Keyword";
|
||||
};
|
||||
}
|
||||
{
|
||||
type = "button";
|
||||
val = "[X] Quit";
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{ pkgs, ... }: {
|
||||
# Avante: AI-powered coding assistant (Cursor-like experience in Neovim)
|
||||
programs.nixvim = {
|
||||
extraConfigLuaPre = ''
|
||||
vim.env.GROQ_API_KEY = os.getenv("GROQ_API_KEY")
|
||||
'';
|
||||
|
||||
#extraConfigLuaPre = ''
|
||||
# vim.env.GROQ_API_KEY = os.getenv("GROQ_API_KEY")
|
||||
#'';
|
||||
# TODO: Integrate CoPilot https://github.com/settings/copilot/features
|
||||
plugins.avante = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
@@ -13,21 +13,20 @@
|
||||
|
||||
providers.groq = {
|
||||
__inherited_from = "openai";
|
||||
api_key_name =
|
||||
"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";
|
||||
api_key_name = "GROQ_API_KEY";
|
||||
endpoint = "https://api.groq.com/openai/v1/";
|
||||
model = "llama-3.3-70b-versatile";
|
||||
model = "groq/compound-mini";
|
||||
disable_tools = true;
|
||||
extra_request_body = {
|
||||
temperature = 1;
|
||||
max_tokens = 32768;
|
||||
max_tokens = 8192;
|
||||
};
|
||||
};
|
||||
|
||||
auto_suggestions_provider = "copilot";
|
||||
# auto_suggestions_provider = "copilot";
|
||||
|
||||
behaviour = {
|
||||
auto_suggestions = true;
|
||||
auto_suggestions = false;
|
||||
auto_set_highlight_group = true;
|
||||
auto_set_keymaps = true;
|
||||
auto_apply_diff_after_generation = false;
|
||||
|
||||
32
home/nixcord.nix
Normal file
32
home/nixcord.nix
Normal file
@@ -0,0 +1,32 @@
|
||||
{ lib, ... }: {
|
||||
programs.nixcord = {
|
||||
enable = true;
|
||||
discord = lib.mkForce { enable = false; };
|
||||
vesktop.enable = true;
|
||||
|
||||
config = {
|
||||
useQuickCss = true;
|
||||
themeLinks = [
|
||||
"https://raw.githubusercontent.com/catppuccin/discord/refs/heads/main/themes/mocha.theme.css"
|
||||
];
|
||||
frameless = true;
|
||||
plugins = {
|
||||
betterFolders.enable = true;
|
||||
betterRoleContext.enable = true;
|
||||
mentionAvatars.enable = true;
|
||||
# copyUserURLs.enable = true;
|
||||
fakeNitro.enable = true;
|
||||
decor.enable = true;
|
||||
accountPanelServerProfile.enable = true;
|
||||
copyFileContents.enable = true;
|
||||
fakeProfileThemes.enable = true;
|
||||
friendsSince.enable = true;
|
||||
implicitRelationships.enable = true;
|
||||
# noTrack.enable = true;
|
||||
permissionsViewer.enable = true;
|
||||
serverInfo.enable = true;
|
||||
translate.enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
4
home/obsidian.nix
Normal file
4
home/obsidian.nix
Normal file
@@ -0,0 +1,4 @@
|
||||
_: {
|
||||
# TODO: Add Automatic Vault pull and detection
|
||||
programs.obsidian.enable = true;
|
||||
}
|
||||
32
home/spicetify.nix
Normal file
32
home/spicetify.nix
Normal file
@@ -0,0 +1,32 @@
|
||||
{ pkgs, inputs, ... }: {
|
||||
programs.spicetify =
|
||||
let spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.system};
|
||||
in {
|
||||
enable = true;
|
||||
spotifyPackage = pkgs.spotify;
|
||||
theme = spicePkgs.themes.catppuccin;
|
||||
colorScheme = "mocha";
|
||||
|
||||
enabledExtensions = with spicePkgs.extensions; [
|
||||
bookmark
|
||||
fullAppDisplay
|
||||
keyboardShortcut
|
||||
popupLyrics
|
||||
shuffle
|
||||
autoVolume
|
||||
betterGenres
|
||||
adblock
|
||||
wikify
|
||||
songStats
|
||||
];
|
||||
|
||||
enabledCustomApps = with spicePkgs.apps; [
|
||||
lyricsPlus
|
||||
newReleases
|
||||
marketplace
|
||||
];
|
||||
|
||||
#enabledSnippets = with spicePkgs.snippets; [ ];
|
||||
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user