nixos/home/emacs/default.nix

195 lines
3.8 KiB
Nix
Raw Normal View History

{ config, pkgs, ... }:
{
xdg.configFile = {
"emacs/init.el".source = ./init.el;
"emacs/snippets".source = ./snippets;
};
programs.emacs = {
enable = true;
package = pkgs.emacs29-pgtk;
extraPackages = epkgs:
with epkgs; [
# theme
modus-themes
# completion-packages
cape
consult
corfu
corfu-terminal
embark
embark-consult
marginalia
orderless
vertico
# snippets-packages
yasnippet
yasnippet-snippets
consult-yasnippet
# ide-packages
treesit-grammars.with-all-grammars
treesit-auto
apheleia
direnv
goto-chg
rainbow-delimiters
aggressive-indent
nix-mode
rust-mode
lua-mode
# media-packages
emms
2023-11-19 08:51:05 +00:00
subsonic
# org-packages
org-noter
org-cliplink
org-journal
org-modern
citar
citar-embark
citar-org-roam
khalel
# project-packages
2023-11-16 12:50:37 +00:00
ibuffer-project
magit
forge
# social-packages
mastodon
ement
# ui-packages
all-the-icons
nerd-icons
nerd-icons-completion
nerd-icons-dired
nerd-icons-ibuffer
2023-11-07 07:06:30 +00:00
ligature
page-break-lines
2023-11-21 06:26:05 +00:00
doom-modeline
helpful
which-key
link-hint
2023-11-07 07:06:30 +00:00
darkroom
# writing-packages
markdown-mode
pandoc-mode
auctex
auctex-latexmk
latex-preview-pane
# email-packages
mu4e
mu4e-alert
# feed-packages
elfeed
elfeed-org
elfeed-tube
elfeed-tube-mpv
];
};
services = {
git-sync = {
enable = true;
repositories = with config.home; {
org = {
path = "${homeDirectory}/Org";
uri = "git+https://git.xenia.me.uk/xenia/org.git";
};
references = {
path = "${homeDirectory}/References";
uri = "git+https://git.xenia.me.uk/xenia/references.git";
};
elfeed = {
path = "${homeDirectory}/.elfeed";
uri = "git+https://git.xenia.me.uk/xenia/elfeed.git";
};
};
};
pantalaimon = {
enable = true;
settings = {
Default = {
LogLevel = "Debug";
SSL = true;
};
local-matrix = {
Homeserver = "https://matrix.xenia.me.uk";
ListenAddress = "127.0.0.1";
ListenPort = 8008;
2023-11-17 08:02:21 +00:00
SSL = false;
UseKeyring = true;
2023-11-17 08:02:21 +00:00
IgnoreVerification = true;
};
};
};
};
home.packages = with pkgs; [
# Emacs requirements
coreutils
fd
ripgrep
imagemagick
languagetool
wordnet
(aspellWithDicts (ds: with ds; [ en en-computers en-science ]))
# Language-specific requirements
sqlite
pandoc
texlive.combined.scheme-full
ghostscript
mupdf
gfortran
rustup
(python3.withPackages (ps:
with ps; [
python-lsp-server
python-lsp-ruff
pylsp-mypy
numpy
scipy
matplotlib
xarray
]))
# Linters
nodePackages.stylelint
# Formatters
nixfmt
beautysh
black
isort
nodePackages.fixjson
fprettify
shellharden
shfmt
stylua
python3Packages.mdformat
html-tidy
# LSP Servers
nil
fortls
shellcheck
marksman
luajitPackages.lua-lsp
nodePackages.yaml-language-server
nodePackages.bash-language-server
nodePackages.javascript-typescript-langserver
nodePackages.vscode-html-languageserver-bin
nodePackages.vscode-css-languageserver-bin
nodePackages.vscode-json-languageserver-bin
nodePackages.dockerfile-language-server-nodejs
];
}