2023-12-11 12:11:55 +00:00
|
|
|
{ config, pkgs, ... }: {
|
2023-11-05 05:55:52 +00:00
|
|
|
programs.emacs = {
|
2023-12-11 12:11:55 +00:00
|
|
|
# Clone emacs config from https://git.xenia.me.uk/xenia/emacs.git
|
2023-11-05 05:55:52 +00:00
|
|
|
enable = true;
|
|
|
|
package = pkgs.emacs29-pgtk;
|
2023-12-11 12:11:55 +00:00
|
|
|
extraConfig = ''(org-babel-load-file "~/Projects/emacs/README.org")'';
|
2023-11-05 05:55:52 +00:00
|
|
|
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
|
2023-12-04 09:58:58 +00:00
|
|
|
tempel
|
|
|
|
tempel-collection
|
2023-11-14 07:29:36 +00:00
|
|
|
|
2023-11-05 05:55:52 +00:00
|
|
|
# ide-packages
|
2023-12-07 13:12:45 +00:00
|
|
|
vterm
|
2023-12-02 08:38:42 +00:00
|
|
|
flymake-popon
|
2023-11-05 05:55:52 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
# 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-12-08 15:15:21 +00:00
|
|
|
diff-hl
|
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
|
|
|
|
fd
|
|
|
|
ripgrep
|
|
|
|
imagemagick
|
|
|
|
languagetool
|
|
|
|
wordnet
|
|
|
|
(aspellWithDicts (ds: with ds; [ en en-computers en-science ]))
|
2023-10-24 09:56:35 +01:00
|
|
|
|
2023-11-30 06:45:59 +00:00
|
|
|
# For EMMS
|
|
|
|
mp3info
|
|
|
|
|
2023-11-05 05:55:52 +00:00
|
|
|
# Language-specific requirements
|
|
|
|
sqlite
|
|
|
|
pandoc
|
|
|
|
texlive.combined.scheme-full
|
|
|
|
ghostscript
|
|
|
|
mupdf
|
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
|
2023-11-30 13:34:14 +00:00
|
|
|
nodePackages.prettier
|
2023-11-05 05:55:52 +00:00
|
|
|
nixfmt
|
|
|
|
black
|
|
|
|
isort
|
|
|
|
fprettify
|
2023-11-30 13:34:14 +00:00
|
|
|
ruff
|
|
|
|
rustfmt
|
2023-11-05 05:55:52 +00:00
|
|
|
stylua
|
2023-11-30 13:34:14 +00:00
|
|
|
shfmt
|
2023-11-05 05:55:52 +00:00
|
|
|
|
|
|
|
# LSP Servers
|
2023-11-14 07:29:36 +00:00
|
|
|
nil
|
2023-11-05 05:55:52 +00:00
|
|
|
fortls
|
|
|
|
shellcheck
|
2023-12-04 11:39:12 +00:00
|
|
|
rust-analyzer
|
2023-11-05 05:55:52 +00:00
|
|
|
luajitPackages.lua-lsp
|
2023-12-07 16:59:10 +00:00
|
|
|
nodePackages.pyright
|
2023-11-05 05:55:52 +00:00
|
|
|
nodePackages.yaml-language-server
|
|
|
|
nodePackages.bash-language-server
|
|
|
|
];
|
2023-07-26 15:45:24 +01:00
|
|
|
}
|