2024-01-30 14:21:50 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
2024-03-31 12:59:24 +01:00
|
|
|
fonts,
|
2024-01-30 14:21:50 +00:00
|
|
|
...
|
|
|
|
}: {
|
2024-02-09 08:42:38 +00:00
|
|
|
imports = [../git/default.nix ../prog/default.nix];
|
2024-03-15 11:44:32 +00:00
|
|
|
programs.git.extraConfig.core.editor = "$EDITOR";
|
2023-11-05 05:55:52 +00:00
|
|
|
programs.emacs = {
|
2024-03-09 11:44:30 +00:00
|
|
|
# Clone emacs config from https://git.xenia.me.uk/pixelifytica/emacs.git
|
|
|
|
# git clone https://git.xenia.me.uk/pixelifytica/emacs.git ~/.config/emacs
|
2023-11-05 05:55:52 +00:00
|
|
|
enable = true;
|
|
|
|
package = pkgs.emacs29-pgtk;
|
2024-03-31 12:59:24 +01:00
|
|
|
extraConfig = let
|
2024-02-26 08:34:45 +00:00
|
|
|
shell = "${pkgs.zsh}/bin/zsh";
|
2024-03-31 12:59:24 +01:00
|
|
|
font = "${fonts.monospace.name}-${toString fonts.sizes.applications}";
|
|
|
|
fixed-font-family = "${fonts.monospace.name}";
|
|
|
|
variable-font-family = "${fonts.sansSerif.name}";
|
|
|
|
alpha = "80";
|
2024-02-02 10:47:42 +00:00
|
|
|
in ''
|
2024-02-26 08:34:45 +00:00
|
|
|
(customize-set-variable 'shell-file-name "${shell}")
|
2024-02-02 10:47:42 +00:00
|
|
|
(add-to-list 'initial-frame-alist '(font . "${font}"))
|
|
|
|
(add-to-list 'default-frame-alist '(font . "${font}"))
|
2024-03-03 08:30:24 +00:00
|
|
|
(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}")
|
2024-02-02 10:47:42 +00:00
|
|
|
(add-to-list 'initial-frame-alist '(alpha-background . ${alpha}))
|
|
|
|
(add-to-list 'default-frame-alist '(alpha-background . ${alpha}))
|
2024-02-03 06:03:22 +00:00
|
|
|
(scroll-bar-mode -1)
|
|
|
|
(tab-bar-mode -1)
|
2024-02-21 07:25:40 +00:00
|
|
|
(menu-bar-mode -1)
|
2024-02-02 10:47:42 +00:00
|
|
|
'';
|
2023-11-05 05:55:52 +00:00
|
|
|
extraPackages = epkgs:
|
|
|
|
with epkgs; [
|
2023-11-14 07:29:36 +00:00
|
|
|
# theme
|
2024-02-29 15:29:19 +00:00
|
|
|
catppuccin-theme
|
2023-11-08 06:27:32 +00:00
|
|
|
|
2024-01-10 15:40:37 +00:00
|
|
|
# spell-checking
|
|
|
|
flyspell-correct
|
|
|
|
consult-flyspell
|
|
|
|
|
2023-12-19 14:46:57 +00:00
|
|
|
# password-store
|
|
|
|
password-store
|
|
|
|
password-store-otp
|
|
|
|
pass # password-store major mode
|
|
|
|
|
2023-11-05 05:55:52 +00:00
|
|
|
# completion-packages
|
|
|
|
cape
|
|
|
|
consult
|
2023-12-21 12:18:38 +00:00
|
|
|
consult-eglot
|
2023-11-05 05:55:52 +00:00
|
|
|
corfu
|
|
|
|
corfu-terminal
|
|
|
|
embark
|
|
|
|
embark-consult
|
|
|
|
marginalia
|
|
|
|
orderless
|
|
|
|
vertico
|
2024-02-21 06:41:28 +00:00
|
|
|
tempel
|
|
|
|
tempel-collection
|
2023-11-14 07:29:36 +00:00
|
|
|
|
2023-11-05 05:55:52 +00:00
|
|
|
# ide-packages
|
|
|
|
treesit-grammars.with-all-grammars
|
|
|
|
treesit-auto
|
2024-01-10 10:31:38 +00:00
|
|
|
flymake-popon
|
2024-02-16 17:12:07 +00:00
|
|
|
flymake-collection
|
2024-03-18 21:09:37 +00:00
|
|
|
flymake-lua
|
2024-03-19 09:47:11 +00:00
|
|
|
flymake-ruff
|
2024-02-16 17:12:07 +00:00
|
|
|
flymake-clippy
|
2024-02-12 09:16:58 +00:00
|
|
|
flymake-eslint
|
2024-03-19 09:47:11 +00:00
|
|
|
flymake-shellcheck
|
2023-11-05 05:55:52 +00:00
|
|
|
apheleia
|
|
|
|
direnv
|
|
|
|
rainbow-delimiters
|
2023-11-17 14:48:04 +00:00
|
|
|
aggressive-indent
|
2023-11-05 05:55:52 +00:00
|
|
|
nix-mode
|
2023-11-09 07:09:48 +00:00
|
|
|
lua-mode
|
2023-12-31 09:23:56 +00:00
|
|
|
cargo
|
2023-11-05 05:55:52 +00:00
|
|
|
|
|
|
|
# media-packages
|
|
|
|
emms
|
|
|
|
|
|
|
|
# org-packages
|
2024-01-29 08:28:31 +00:00
|
|
|
org-roam
|
2023-11-09 07:09:48 +00:00
|
|
|
org-noter
|
2023-11-05 05:55:52 +00:00
|
|
|
org-journal
|
|
|
|
citar
|
|
|
|
citar-embark
|
2024-01-04 11:03:24 +00:00
|
|
|
gnuplot
|
2023-11-05 05:55:52 +00:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
# ui-packages
|
|
|
|
all-the-icons
|
|
|
|
nerd-icons
|
|
|
|
nerd-icons-completion
|
2023-12-21 12:18:38 +00:00
|
|
|
nerd-icons-corfu
|
2023-11-05 05:55:52 +00:00
|
|
|
nerd-icons-dired
|
|
|
|
nerd-icons-ibuffer
|
2024-02-29 15:36:27 +00:00
|
|
|
doom-modeline
|
2024-01-09 09:02:48 +00:00
|
|
|
diminish
|
2023-11-07 07:06:30 +00:00
|
|
|
ligature
|
2023-11-05 05:55:52 +00:00
|
|
|
page-break-lines
|
|
|
|
helpful
|
|
|
|
which-key
|
|
|
|
link-hint
|
2023-12-08 15:15:21 +00:00
|
|
|
diff-hl
|
2023-11-05 05:55:52 +00:00
|
|
|
|
2024-02-03 08:10:23 +00:00
|
|
|
# Tree-Sitter packages
|
|
|
|
nushell-ts-mode
|
|
|
|
|
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
|
|
|
|
|
|
|
|
# feed-packages
|
|
|
|
elfeed
|
|
|
|
elfeed-org
|
|
|
|
elfeed-tube
|
|
|
|
elfeed-tube-mpv
|
|
|
|
];
|
|
|
|
};
|
2024-03-15 11:44:32 +00:00
|
|
|
services = {
|
|
|
|
emacs = {
|
|
|
|
enable = true;
|
|
|
|
package = config.programs.emacs.finalPackage;
|
|
|
|
defaultEditor = true;
|
|
|
|
client.enable = true;
|
2024-03-19 09:00:39 +00:00
|
|
|
socketActivation.enable = true;
|
|
|
|
startWithUserSession = false;
|
2024-02-10 06:45:31 +00:00
|
|
|
};
|
2024-03-15 11:44:32 +00:00
|
|
|
git-sync.repositories = with config.xdg.userDirs; {
|
|
|
|
org = {
|
|
|
|
path = "${documents}/Org";
|
|
|
|
uri = "git+https://git.xenia.me.uk/xenia/org.git";
|
|
|
|
};
|
|
|
|
references = {
|
|
|
|
path = "${documents}/References";
|
|
|
|
uri = "git+https://git.xenia.me.uk/xenia/references.git";
|
|
|
|
};
|
2024-02-10 06:45:31 +00:00
|
|
|
};
|
2024-01-29 08:21:26 +00:00
|
|
|
};
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
# Emacs requirements
|
|
|
|
imagemagick
|
|
|
|
languagetool
|
|
|
|
wordnet
|
2024-02-19 09:35:24 +00:00
|
|
|
gnuplot # For org-plot
|
|
|
|
graphviz # For org-roam graph
|
|
|
|
mp3info # For EMMS
|
2024-01-29 08:21:26 +00:00
|
|
|
|
|
|
|
# Language-specific requirements
|
|
|
|
sqlite
|
|
|
|
pandoc
|
|
|
|
ghostscript
|
|
|
|
poppler_utils
|
|
|
|
|
|
|
|
# Customised LaTeX install
|
|
|
|
(texlive.combine {
|
2024-03-12 13:53:20 +00:00
|
|
|
inherit (pkgs.texlive) scheme-medium dvisvgm dvipng wrapfig amsmath ulem hyperref capt-of;
|
2024-01-29 08:21:26 +00:00
|
|
|
})
|
|
|
|
];
|
2023-07-26 15:45:24 +01:00
|
|
|
}
|