Compare commits

..

2 Commits

Author SHA1 Message Date
75362d2319 changed wivrn again 2026-02-26 12:21:29 +00:00
7f7fd3669c Add nvim-flake.nix 2026-02-24 11:51:37 +00:00
2 changed files with 73 additions and 0 deletions

View File

@@ -95,6 +95,7 @@
services.wivrn = {
enable = true;
package = pkgs.unstable.wivrn;
openFirewall = true;
defaultRuntime = true;
};

72
nvim-flake.nix Normal file
View File

@@ -0,0 +1,72 @@
{
description = "Neovim with LSP dev shell";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs }:
let
system = "x86_64-linux"; # change if needed
pkgs = import nixpkgs { inherit system; };
in
{
devShells.${system}.default = pkgs.mkShell {
packages = with pkgs; [
# neovim
neovim
# LSPs
lua-language-server
vscode-langservers-extracted
emmet-ls
prettier
black
nixfmt
nil
python313Packages.python-lsp-server
typescript-language-server
tailwindcss-language-server
stylua
nixd
# other tools
lua5_1
tree-sitter
ripgrep
gcc
gnumake
imagemagick
luajitPackages.magick
ghostscript
luarocks
(texlive.combine {
inherit (texlive)
scheme-basic
varwidth
preview
mathtools
amsfonts
amscdx
xcolor
dvisvgm
dvipng
wrapfig
standalone
graphicxbox
amsmath
ulem
hyperref
capt-of;
})
];
shellHook = ''
export TREE_SITTER_LIB_PATH="${pkgs.tree-sitter}/lib"
echo "Neovim LSP environment loaded"
'';
};
};
}