nixos/home/emacs/default.nix

50 lines
800 B
Nix
Raw Normal View History

{ pkgs, ... }:
{
# Emacs server service
services.emacs = {
enable = true;
package = pkgs.emacs28NativeComp;
defaultEditor = true;
startWithUserSession = true;
client.enable = true;
};
home.packages = with pkgs; [
# Emacs dependencies
emacs28NativeComp
git
ripgrep
coreutils
cmake
fd
# Language-specific requirements
ispell
sqlite
pandoc
python3
gfortran
texlive.combined.scheme-medium
texlab
# Formatters
nixfmt
beautysh
black
nodePackages.fixjson
fprettify
isort
shellharden
stylua
python3Packages.mdformat
# LSP servers
nil
fortls
nodePackages.pyright
nodePackages.yaml-language-server
nodePackages.bash-language-server
shellcheck
];
}