catarina: common helix
This commit is contained in:
parent
7946912c2c
commit
3314b7f8c5
@ -32,6 +32,7 @@
|
|||||||
|
|
||||||
environmentVariables = {
|
environmentVariables = {
|
||||||
GNUPGHOME = hmConfig.programs.gpg.homedir;
|
GNUPGHOME = hmConfig.programs.gpg.homedir;
|
||||||
|
SSH_AUTH_SOCK = "/run/user/1000/ssh-agent";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -134,7 +134,7 @@
|
|||||||
|
|
||||||
neovim = {
|
neovim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
defaultEditor = true;
|
defaultEditor = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -87,6 +87,7 @@
|
|||||||
|
|
||||||
bluetooth.enable = true;
|
bluetooth.enable = true;
|
||||||
|
|
||||||
|
bluetooth.powerOnBoot = true;
|
||||||
pulseaudio.enable = false;
|
pulseaudio.enable = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -36,6 +36,9 @@ in {
|
|||||||
})
|
})
|
||||||
inputs.catppuccin.homeManagerModules.catppuccin
|
inputs.catppuccin.homeManagerModules.catppuccin
|
||||||
inputs.ags.homeManagerModules.default
|
inputs.ags.homeManagerModules.default
|
||||||
|
|
||||||
|
../common/hm/helix.nix
|
||||||
|
../common/hm/nushell.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
@ -106,136 +109,27 @@ in {
|
|||||||
accent = "green";
|
accent = "green";
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.helix = {
|
programs.yazi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
enableNushellIntegration = true;
|
||||||
theme = "gruvbox";
|
enableBashIntegration = true;
|
||||||
editor.cursor-shape = {
|
keymap = {
|
||||||
normal = "block";
|
input.prepend_keymap = [
|
||||||
insert = "bar";
|
|
||||||
select = "underline";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
extraPackages = with pkgs; [pyright ruff alejandra];
|
|
||||||
languages = {
|
|
||||||
language = [
|
|
||||||
{
|
{
|
||||||
name = "nix";
|
run = "close";
|
||||||
auto-format = true;
|
on = ["<Esc>"];
|
||||||
formatter.command = "alejandra";
|
desc = "Cancel input";
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
name = "python";
|
run = ''shell "$SHELL" --block'';
|
||||||
language-id = "python";
|
on = "!";
|
||||||
roots = ["pyproject.toml" "setup.py" "poetry.lock" "uv.lock" "pdm.lock"];
|
desc = "Drop in shell";
|
||||||
language-servers = ["ruff" "pyright"];
|
|
||||||
auto-format = true;
|
|
||||||
formatter = {
|
|
||||||
command = "ruff";
|
|
||||||
args = ["format" "-"];
|
|
||||||
};
|
|
||||||
file-types = ["py"];
|
|
||||||
comment-token = "#";
|
|
||||||
shebangs = ["python"];
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
language-server = {
|
|
||||||
pyright = {
|
|
||||||
command = "pyright-langserver";
|
|
||||||
args = ["--stdio"];
|
|
||||||
config.python.analysis = {
|
|
||||||
venvPath = ".";
|
|
||||||
venv = ".venv";
|
|
||||||
lint = true;
|
|
||||||
inlayHint.enable = true;
|
|
||||||
autoSearchPaths = true;
|
|
||||||
diagnosticMode = "workspace";
|
|
||||||
useLibraryCodeForType = true;
|
|
||||||
logLevel = "Error";
|
|
||||||
typeCheckingMode = "off";
|
|
||||||
autoImoprtCompletion = true;
|
|
||||||
reportOptionalSubscript = false;
|
|
||||||
reportOptionalMemberAccess = false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
ruff = {
|
|
||||||
command = "ruff";
|
|
||||||
args = ["server"];
|
|
||||||
environment = {RUFF_TRACE = "messages";};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
nushell = {
|
|
||||||
enable = true;
|
|
||||||
# The config.nu can be anywhere you want if you like to edit your Nushell with Nu
|
|
||||||
#configFile.source = ./.../config.nu;
|
|
||||||
# for editing directly to config.nu
|
|
||||||
extraConfig = ''
|
|
||||||
let carapace_completer = {|spans|
|
|
||||||
carapace $spans.0 nushell $spans | from json
|
|
||||||
}
|
|
||||||
$env.config = {
|
|
||||||
show_banner: false,
|
|
||||||
completions: {
|
|
||||||
case_sensitive: false # case-sensitive completions
|
|
||||||
quick: true # set to false to prevent auto-selecting completions
|
|
||||||
partial: true # set to false to prevent partial filling of the prompt
|
|
||||||
algorithm: "fuzzy"
|
|
||||||
external: {
|
|
||||||
enable: true
|
|
||||||
max_results: 100
|
|
||||||
completer: $carapace_completer
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
carapace = {
|
|
||||||
enable = true;
|
|
||||||
enableNushellIntegration = true;
|
|
||||||
enableBashIntegration = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
starship = {
|
|
||||||
enable = true;
|
|
||||||
enableNushellIntegration = true;
|
|
||||||
enableBashIntegration = true;
|
|
||||||
settings = {
|
|
||||||
add_newline = true;
|
|
||||||
format = ''
|
|
||||||
$all $fill $time
|
|
||||||
$character
|
|
||||||
'';
|
|
||||||
fill = {
|
|
||||||
symbol = " ";
|
|
||||||
};
|
|
||||||
line_break = {
|
|
||||||
disabled = true;
|
|
||||||
};
|
|
||||||
directory = {
|
|
||||||
truncate_to_repo = false;
|
|
||||||
};
|
|
||||||
time = {
|
|
||||||
disabled = false;
|
|
||||||
use_12hr = true;
|
|
||||||
};
|
|
||||||
character = {
|
|
||||||
success_symbol = "[❯](bold green)";
|
|
||||||
error_symbol = "[❯](bold red)";
|
|
||||||
};
|
|
||||||
nix_shell = {
|
|
||||||
symbol = " ";
|
|
||||||
heuristic = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# General
|
# General
|
||||||
fish = {
|
fish = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@ -404,4 +298,9 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
fonts.packages = with pkgs; [nerd-fonts.jetbrains-mono liberation_ttf];
|
fonts.packages = with pkgs; [nerd-fonts.jetbrains-mono liberation_ttf];
|
||||||
|
|
||||||
|
services.ollama = {
|
||||||
|
enable = true;
|
||||||
|
acceleration = false;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user