2024-05-11 13:55:23 +01:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
fonts,
|
|
|
|
...
|
|
|
|
}: {
|
2024-06-04 15:43:27 +01:00
|
|
|
imports = [
|
|
|
|
./python/default.nix
|
|
|
|
./lua/default.nix
|
|
|
|
];
|
2024-05-11 13:55:23 +01:00
|
|
|
programs.emacs = {
|
|
|
|
# Clone emacs config from https://git.xenia.me.uk/pixelifytica/emacs.git
|
2024-06-04 11:39:14 +01:00
|
|
|
# git clone https://git.xenia.me.uk/pixelifytica/emacs.git ~/.emacs.d
|
2024-05-11 13:55:23 +01:00
|
|
|
enable = true;
|
|
|
|
package = pkgs.emacs29-pgtk;
|
|
|
|
extraConfig = let
|
|
|
|
shell = "${pkgs.zsh}/bin/zsh";
|
|
|
|
font = "${fonts.monospace.name}-${toString fonts.sizes.applications}";
|
|
|
|
fixed-font-family = "${fonts.monospace.name}";
|
|
|
|
variable-font-family = "${fonts.sansSerif.name}";
|
2024-05-27 21:07:45 +01:00
|
|
|
alpha = "90";
|
2024-05-11 13:55:23 +01:00
|
|
|
in ''
|
|
|
|
(customize-set-variable 'shell-file-name "${shell}")
|
|
|
|
(add-to-list 'initial-frame-alist '(font . "${font}"))
|
|
|
|
(add-to-list 'default-frame-alist '(font . "${font}"))
|
|
|
|
(set-face-attribute 'fixed-pitch nil :family "${fixed-font-family}")
|
|
|
|
(set-face-attribute 'fixed-pitch-serif nil :family "${fixed-font-family}")
|
|
|
|
(set-face-attribute 'variable-pitch nil :family "${variable-font-family}")
|
|
|
|
(add-to-list 'initial-frame-alist '(alpha-background . ${alpha}))
|
|
|
|
(add-to-list 'default-frame-alist '(alpha-background . ${alpha}))
|
|
|
|
'';
|
|
|
|
extraPackages = epkgs:
|
|
|
|
with epkgs; [
|
|
|
|
# Theme
|
|
|
|
base16-theme
|
|
|
|
|
|
|
|
# UI
|
|
|
|
all-the-icons
|
|
|
|
nerd-icons
|
|
|
|
nerd-icons-completion
|
|
|
|
nerd-icons-corfu
|
|
|
|
nerd-icons-dired
|
|
|
|
nerd-icons-ibuffer
|
|
|
|
diminish
|
|
|
|
ligature
|
|
|
|
page-break-lines
|
|
|
|
helpful
|
|
|
|
which-key
|
2024-05-22 10:11:33 +01:00
|
|
|
ace-window
|
2024-05-11 13:55:23 +01:00
|
|
|
link-hint
|
|
|
|
diff-hl
|
|
|
|
|
|
|
|
# Completion
|
|
|
|
cape
|
|
|
|
consult
|
|
|
|
consult-eglot
|
|
|
|
consult-flyspell
|
|
|
|
corfu
|
|
|
|
corfu-terminal
|
|
|
|
embark
|
|
|
|
embark-consult
|
|
|
|
marginalia
|
|
|
|
orderless
|
|
|
|
vertico
|
|
|
|
|
2024-05-26 09:44:21 +01:00
|
|
|
# Templates
|
|
|
|
tempel
|
|
|
|
license-templates
|
|
|
|
gitignore-templates
|
|
|
|
|
2024-05-11 13:55:23 +01:00
|
|
|
# spell-checking
|
|
|
|
flyspell-correct
|
|
|
|
|
|
|
|
# password-store
|
|
|
|
pass
|
|
|
|
password-store
|
|
|
|
|
|
|
|
# IDE
|
|
|
|
treesit-grammars.with-all-grammars
|
|
|
|
treesit-auto
|
|
|
|
flymake-popon
|
|
|
|
flymake-shellcheck
|
2024-05-13 11:58:11 +01:00
|
|
|
flymake-yamllint
|
2024-05-11 13:55:23 +01:00
|
|
|
apheleia
|
2024-05-23 14:08:08 +01:00
|
|
|
envrc
|
2024-05-11 13:55:23 +01:00
|
|
|
rainbow-delimiters
|
|
|
|
aggressive-indent
|
|
|
|
python-docstring
|
2024-05-16 10:39:45 +01:00
|
|
|
nix-mode
|
|
|
|
lua-mode
|
2024-05-11 13:55:23 +01:00
|
|
|
|
|
|
|
# Media
|
|
|
|
emms
|
|
|
|
|
|
|
|
# org-mode
|
|
|
|
org-roam
|
|
|
|
org-noter
|
|
|
|
org-journal
|
|
|
|
|
|
|
|
# org-cite
|
|
|
|
citar
|
|
|
|
citar-embark
|
|
|
|
|
|
|
|
# org-mode HTML export
|
|
|
|
htmlize
|
|
|
|
|
|
|
|
# Projects
|
|
|
|
ibuffer-project
|
|
|
|
magit
|
|
|
|
forge
|
2024-06-04 17:26:37 +01:00
|
|
|
treemacs
|
2024-05-11 13:55:23 +01:00
|
|
|
|
|
|
|
# Writing
|
|
|
|
markdown-mode
|
|
|
|
pandoc-mode
|
|
|
|
auctex
|
|
|
|
auctex-latexmk
|
|
|
|
latex-preview-pane
|
|
|
|
|
|
|
|
# Email
|
|
|
|
mu4e
|
|
|
|
|
|
|
|
# RSS feeds
|
|
|
|
elfeed
|
|
|
|
elfeed-org
|
|
|
|
elfeed-tube
|
|
|
|
];
|
|
|
|
};
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
# Emacs requirements
|
|
|
|
imagemagick
|
|
|
|
languagetool
|
|
|
|
wordnet
|
2024-05-30 13:41:12 +01:00
|
|
|
fd
|
|
|
|
ripgrep
|
2024-05-11 13:55:23 +01:00
|
|
|
graphviz # For org-roam graph
|
|
|
|
mp3info # For EMMS
|
|
|
|
|
|
|
|
# Language-specific requirements
|
|
|
|
sqlite
|
|
|
|
pandoc
|
|
|
|
ghostscript
|
|
|
|
poppler_utils
|
|
|
|
|
|
|
|
# Customised LaTeX install
|
2024-05-30 13:41:12 +01:00
|
|
|
(texlive.combine
|
|
|
|
{inherit (pkgs.texlive) scheme-medium dvisvgm dvipng wrapfig amsmath ulem hyperref capt-of;})
|
2024-05-15 15:47:56 +01:00
|
|
|
python3Packages.pygments
|
2024-05-13 11:58:11 +01:00
|
|
|
|
|
|
|
# Development tools
|
|
|
|
## Linters
|
|
|
|
shellcheck
|
|
|
|
yamllint
|
|
|
|
|
|
|
|
## Formatters
|
|
|
|
alejandra
|
|
|
|
shfmt
|
2024-05-15 11:59:24 +01:00
|
|
|
ruff
|
2024-05-13 11:58:11 +01:00
|
|
|
isort
|
|
|
|
stylua
|
|
|
|
nodePackages.prettier
|
2024-06-04 15:43:27 +01:00
|
|
|
|
|
|
|
## Language servers
|
|
|
|
pyright
|
|
|
|
lua-language-server
|
2024-05-11 13:55:23 +01:00
|
|
|
];
|
|
|
|
}
|