nixos: add ocaml

This commit is contained in:
Maciej Jur 2024-07-08 20:41:23 +02:00
parent 5431ef4556
commit 9b17adb594
Signed by: kamov
GPG key ID: 191CBFF5F72ECAFD
2 changed files with 30 additions and 7 deletions

View file

@ -14,9 +14,6 @@ let
# Neovim
wl-clipboard
tree-sitter
ripgrep
fd
unzip
neovim
];

View file

@ -16,12 +16,19 @@
packages = with pkgs; [
anki
audacity
calibre
chromium
discord
krita
obs-studio
qbittorrent
spotify
vlc
# OCaml
ocaml
ocamlformat
opam
dune_3
];
};
@ -34,7 +41,15 @@
programs = {
# default shell
fish.enable = true;
fish = {
enable = true;
interactiveShellInit = ''
set fish_greeting # Disable greeting
'';
shellAliases = {
shell = "nix-shell --command fish";
};
};
git = {
enable = true;
@ -75,8 +90,19 @@
enable = true;
defaultEditor = true;
extraPackages = with pkgs; [
lua-language-server
nixd
fd
ripgrep
tree-sitter
# LSP
lua-language-server # lua
marksman # markdown
nixd # nix
nodePackages.svelte-language-server # svelte
nodePackages.typescript-language-server # typescript
ocamlPackages.ocaml-lsp # ocaml
vscode-langservers-extracted # css/html/json
lldb
];
};