2023-11-06 07:18:06 +00:00
|
|
|
{ config, pkgs, ... }:
|
2023-10-23 17:28:05 +01:00
|
|
|
|
|
|
|
{
|
2023-09-24 12:17:51 +01:00
|
|
|
xdg.configFile = {
|
2023-11-06 12:09:47 +00:00
|
|
|
"emacs/init.el".source = ./init.el;
|
2023-10-27 06:40:20 +01:00
|
|
|
"emacs/snippets".source = ./snippets;
|
2023-09-24 12:17:51 +01:00
|
|
|
};
|
2023-11-05 05:55:52 +00:00
|
|
|
programs.emacs = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.emacs29-pgtk;
|
|
|
|
extraPackages = epkgs:
|
|
|
|
with epkgs; [
|
2023-11-14 07:29:36 +00:00
|
|
|
# theme
|
2023-11-08 06:27:32 +00:00
|
|
|
modus-themes
|
|
|
|
|
2023-11-05 05:55:52 +00:00
|
|
|
# completion-packages
|
|
|
|
cape
|
|
|
|
consult
|
|
|
|
corfu
|
|
|
|
corfu-terminal
|
|
|
|
embark
|
|
|
|
embark-consult
|
|
|
|
marginalia
|
|
|
|
orderless
|
|
|
|
vertico
|
|
|
|
|
2023-11-14 07:29:36 +00:00
|
|
|
# snippets-packages
|
|
|
|
yasnippet
|
|
|
|
yasnippet-snippets
|
|
|
|
consult-yasnippet
|
|
|
|
|
2023-11-05 05:55:52 +00:00
|
|
|
# ide-packages
|
|
|
|
treesit-grammars.with-all-grammars
|
|
|
|
treesit-auto
|
|
|
|
apheleia
|
|
|
|
direnv
|
|
|
|
goto-chg
|
|
|
|
rainbow-delimiters
|
2023-11-17 14:48:04 +00:00
|
|
|
aggressive-indent
|
2023-11-05 05:55:52 +00:00
|
|
|
nix-mode
|
|
|
|
rust-mode
|
2023-11-09 07:09:48 +00:00
|
|
|
lua-mode
|
2023-11-05 05:55:52 +00:00
|
|
|
|
|
|
|
# media-packages
|
|
|
|
emms
|
2023-11-19 08:51:05 +00:00
|
|
|
subsonic
|
2023-11-05 05:55:52 +00:00
|
|
|
|
|
|
|
# org-packages
|
2023-11-09 07:09:48 +00:00
|
|
|
org-noter
|
2023-11-05 05:55:52 +00:00
|
|
|
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
|
2023-11-05 05:55:52 +00:00
|
|
|
magit
|
2023-11-09 07:09:48 +00:00
|
|
|
forge
|
2023-11-05 05:55:52 +00:00
|
|
|
|
|
|
|
# social-packages
|
|
|
|
mastodon
|
2023-11-09 07:09:48 +00:00
|
|
|
ement
|
2023-11-05 05:55:52 +00:00
|
|
|
|
|
|
|
# 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
|
2023-11-05 05:55:52 +00:00
|
|
|
page-break-lines
|
2023-11-21 06:26:05 +00:00
|
|
|
doom-modeline
|
2023-11-05 05:55:52 +00:00
|
|
|
helpful
|
|
|
|
which-key
|
|
|
|
link-hint
|
2023-11-07 07:06:30 +00:00
|
|
|
darkroom
|
2023-11-05 05:55:52 +00:00
|
|
|
|
|
|
|
# writing-packages
|
|
|
|
markdown-mode
|
|
|
|
pandoc-mode
|
|
|
|
auctex
|
|
|
|
auctex-latexmk
|
2023-11-09 07:09:48 +00:00
|
|
|
latex-preview-pane
|
2023-11-05 05:55:52 +00:00
|
|
|
|
|
|
|
# email-packages
|
|
|
|
mu4e
|
|
|
|
mu4e-alert
|
|
|
|
|
|
|
|
# feed-packages
|
|
|
|
elfeed
|
|
|
|
elfeed-org
|
|
|
|
elfeed-tube
|
|
|
|
elfeed-tube-mpv
|
|
|
|
];
|
|
|
|
};
|
2023-11-16 07:52:15 +00:00
|
|
|
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";
|
|
|
|
};
|
2023-11-04 21:00:13 +00:00
|
|
|
};
|
2023-11-16 07:52:15 +00:00
|
|
|
};
|
|
|
|
pantalaimon = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
Default = {
|
|
|
|
LogLevel = "Debug";
|
|
|
|
SSL = true;
|
|
|
|
};
|
|
|
|
local-matrix = {
|
2023-11-23 09:24:32 +00:00
|
|
|
Homeserver = "https://matrix.xenia.me.uk";
|
2023-11-16 07:52:15 +00:00
|
|
|
ListenAddress = "127.0.0.1";
|
|
|
|
ListenPort = 8008;
|
2023-11-17 08:02:21 +00:00
|
|
|
SSL = false;
|
2023-11-23 09:24:32 +00:00
|
|
|
UseKeyring = true;
|
2023-11-17 08:02:21 +00:00
|
|
|
IgnoreVerification = true;
|
2023-11-16 07:52:15 +00:00
|
|
|
};
|
2023-10-26 13:30:44 +01:00
|
|
|
};
|
2023-10-19 06:33:56 +01:00
|
|
|
};
|
|
|
|
};
|
2023-11-05 05:55:52 +00:00
|
|
|
home.packages = with pkgs; [
|
|
|
|
# Emacs requirements
|
|
|
|
coreutils
|
|
|
|
fd
|
|
|
|
ripgrep
|
|
|
|
imagemagick
|
|
|
|
languagetool
|
|
|
|
wordnet
|
|
|
|
(aspellWithDicts (ds: with ds; [ en en-computers en-science ]))
|
2023-10-24 09:56:35 +01:00
|
|
|
|
2023-11-05 05:55:52 +00:00
|
|
|
# Language-specific requirements
|
|
|
|
sqlite
|
|
|
|
pandoc
|
|
|
|
texlive.combined.scheme-full
|
|
|
|
ghostscript
|
|
|
|
mupdf
|
2023-11-14 07:29:36 +00:00
|
|
|
gfortran
|
|
|
|
rustup
|
|
|
|
(python3.withPackages (ps:
|
|
|
|
with ps; [
|
|
|
|
python-lsp-server
|
|
|
|
python-lsp-ruff
|
|
|
|
pylsp-mypy
|
|
|
|
numpy
|
|
|
|
scipy
|
|
|
|
matplotlib
|
|
|
|
xarray
|
|
|
|
]))
|
2023-10-24 09:56:35 +01:00
|
|
|
|
2023-11-05 05:55:52 +00:00
|
|
|
# Linters
|
|
|
|
nodePackages.stylelint
|
2023-10-24 09:56:35 +01:00
|
|
|
|
2023-11-05 05:55:52 +00:00
|
|
|
# Formatters
|
|
|
|
nixfmt
|
|
|
|
beautysh
|
|
|
|
black
|
|
|
|
isort
|
|
|
|
nodePackages.fixjson
|
|
|
|
fprettify
|
|
|
|
shellharden
|
|
|
|
shfmt
|
|
|
|
stylua
|
|
|
|
python3Packages.mdformat
|
|
|
|
html-tidy
|
|
|
|
|
|
|
|
# LSP Servers
|
2023-11-14 07:29:36 +00:00
|
|
|
nil
|
2023-11-05 05:55:52 +00:00
|
|
|
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
|
|
|
|
];
|
2023-07-26 15:45:24 +01:00
|
|
|
}
|