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-12-04 09:58:58 +00:00
|
|
|
"emacs/templates".source = ./templates;
|
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
|
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-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
|
2023-12-04 10:33:09 +00:00
|
|
|
zip
|
|
|
|
unzip
|
2023-11-05 05:55:52 +00:00
|
|
|
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
|
|
|
|
nodePackages.yaml-language-server
|
|
|
|
nodePackages.bash-language-server
|
2023-12-04 17:14:07 +00:00
|
|
|
(python3.withPackages
|
|
|
|
(ps: with ps; [ python-lsp-server python-lsp-ruff pylsp-mypy ]))
|
2023-11-05 05:55:52 +00:00
|
|
|
];
|
2023-07-26 15:45:24 +01:00
|
|
|
}
|