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; [
|
2024-04-17 13:34:58 +01:00
|
|
|
# Theme
|
2024-02-29 15:29:19 +00:00
|
|
|
catppuccin-theme
|
2023-11-08 06:27:32 +00:00
|
|
|
|
2024-04-17 13:34:58 +01:00
|
|
|
# UI
|
|
|
|
all-the-icons
|
|
|
|
nerd-icons
|
|
|
|
nerd-icons-completion
|
|
|
|
nerd-icons-corfu
|
|
|
|
nerd-icons-dired
|
|
|
|
nerd-icons-ibuffer
|
|
|
|
doom-modeline
|
|
|
|
diminish
|
|
|
|
ligature
|
|
|
|
page-break-lines
|
|
|
|
helpful
|
|
|
|
which-key
|
|
|
|
link-hint
|
|
|
|
diff-hl
|
2023-12-19 14:46:57 +00:00
|
|
|
|
2024-04-17 13:34:58 +01:00
|
|
|
# Completion
|
2023-11-05 05:55:52 +00:00
|
|
|
cape
|
|
|
|
consult
|
2023-12-21 12:18:38 +00:00
|
|
|
consult-eglot
|
2024-04-17 13:34:58 +01:00
|
|
|
consult-flyspell
|
2023-11-05 05:55:52 +00:00
|
|
|
corfu
|
|
|
|
corfu-terminal
|
|
|
|
embark
|
|
|
|
embark-consult
|
|
|
|
marginalia
|
|
|
|
orderless
|
|
|
|
vertico
|
2024-04-17 13:34:58 +01:00
|
|
|
|
|
|
|
# Snippets
|
2024-02-21 06:41:28 +00:00
|
|
|
tempel
|
|
|
|
tempel-collection
|
2023-11-14 07:29:36 +00:00
|
|
|
|
2024-04-17 13:34:58 +01:00
|
|
|
# spell-checking
|
|
|
|
flyspell-correct
|
|
|
|
|
|
|
|
# password-store
|
|
|
|
pass
|
|
|
|
password-store
|
|
|
|
password-store-otp
|
|
|
|
|
|
|
|
# IDE
|
2023-11-05 05:55:52 +00:00
|
|
|
treesit-grammars.with-all-grammars
|
|
|
|
treesit-auto
|
2024-04-17 13:34:58 +01:00
|
|
|
nushell-ts-mode
|
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
|
|
|
|
2024-04-17 13:34:58 +01:00
|
|
|
# Media
|
2023-11-05 05:55:52 +00:00
|
|
|
emms
|
|
|
|
|
2024-04-17 13:34:58 +01:00
|
|
|
# org-mode
|
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
|
2024-04-17 13:34:58 +01:00
|
|
|
|
|
|
|
# org-cite
|
2023-11-05 05:55:52 +00:00
|
|
|
citar
|
|
|
|
citar-embark
|
2024-04-17 13:34:58 +01:00
|
|
|
|
|
|
|
# org-plot
|
2024-01-04 11:03:24 +00:00
|
|
|
gnuplot
|
2023-11-05 05:55:52 +00:00
|
|
|
|
2024-04-17 13:34:58 +01:00
|
|
|
# Projects
|
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
|
|
|
|
2024-04-17 13:34:58 +01:00
|
|
|
# Writing
|
2023-11-05 05:55:52 +00:00
|
|
|
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
|
|
|
|
2024-04-17 13:34:58 +01:00
|
|
|
# Email
|
2023-11-05 05:55:52 +00:00
|
|
|
mu4e
|
|
|
|
|
2024-04-17 13:34:58 +01:00
|
|
|
# RSS/YouTube feeds
|
2023-11-05 05:55:52 +00:00
|
|
|
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-04-15 07:57:18 +01:00
|
|
|
socketActivation.enable = false;
|
|
|
|
startWithUserSession = true;
|
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
|
|
|
}
|