nixos/roles/home/helix.nix

61 lines
1.1 KiB
Nix
Raw Normal View History

{ pkgs, ... }:
2023-10-01 01:32:30 +01:00
let
2024-02-21 15:13:20 +00:00
actualPkgs = pkgs.unstablePkgs;
2024-11-17 14:15:29 +00:00
lib = actualPkgs.lib;
2024-02-21 15:13:20 +00:00
nodePkgs = with actualPkgs.nodePackages; [
vscode-langservers-extracted
typescript
svelte-language-server
yaml-language-server
typescript-language-server
2023-12-21 15:09:55 +00:00
bash-language-server
];
py3 = actualPkgs.python3.withPackages (ps: with ps; [
python-lsp-server
python-lsp-ruff
pylsp-rope
rope
mypy
pylsp-mypy
]);
2023-10-01 01:32:30 +01:00
in
{
home = {
2024-02-21 15:13:20 +00:00
packages = with actualPkgs; [
black
helix
clang-tools
rust-analyzer
nixd
2024-02-21 15:13:20 +00:00
texlab
nixpkgs-fmt
shellcheck
shfmt
gopls
golangci-lint
golangci-lint-langserver
py3
ruff
2024-06-05 13:37:51 +01:00
gh
gofumpt
taplo
2024-11-18 11:41:55 +00:00
docker-compose-language-service
2025-01-15 12:03:43 +00:00
mdformat
2025-01-15 12:05:36 +00:00
marksman
2024-02-21 15:13:20 +00:00
] ++ nodePkgs;
sessionVariables = {
EDITOR = "hx";
VISUAL = "hx";
};
2024-04-11 12:32:58 +01:00
file = {
2024-11-17 14:15:29 +00:00
".config/helix/config.toml".text = lib.readFile ./helix/config.toml;
".config/helix/languages.toml".text = lib.readFile ./helix/languages.toml;
2024-04-11 12:32:58 +01:00
};
};
}