emacs.nix: cleanup
This commit is contained in:
parent
e5813bbbd6
commit
0b2acf77c1
1 changed files with 5 additions and 81 deletions
|
@ -10,97 +10,28 @@
|
||||||
inherit (lib) mkIf;
|
inherit (lib) mkIf;
|
||||||
|
|
||||||
# Taken from outfoxxed since figuring this out is really annoying.
|
# Taken from outfoxxed since figuring this out is really annoying.
|
||||||
pkgswithemacs =
|
emacsOverlay =
|
||||||
pkgs.appendOverlays
|
pkgs.appendOverlays
|
||||||
(with inputs.emacs-overlay.overlays; [
|
(with inputs.emacs-overlay.overlays; [
|
||||||
emacs
|
emacs
|
||||||
package
|
package
|
||||||
]);
|
]);
|
||||||
|
|
||||||
custom-emacs = with pkgswithemacs; ((emacsPackagesFor
|
customEmacs = with emacsOverlay; ((emacsPackagesFor
|
||||||
(emacs29-pgtk.override {withNativeCompilation = true;}))
|
(emacs29-pgtk.override {withNativeCompilation = true;}))
|
||||||
.emacsWithPackages (epkgs:
|
.emacsWithPackages (epkgs:
|
||||||
with epkgs; [
|
with epkgs; [
|
||||||
# alert
|
|
||||||
# all-the-icons
|
|
||||||
# all-the-icons-dired
|
|
||||||
# avy
|
|
||||||
# beacon
|
|
||||||
# catppuccin-theme
|
|
||||||
# cask-mode
|
|
||||||
# company
|
|
||||||
# crux
|
|
||||||
# dimmer
|
|
||||||
# dired-du
|
|
||||||
# dired-open
|
|
||||||
# direnv
|
|
||||||
# dirvish
|
|
||||||
# doom-modeline
|
|
||||||
# editorconfig
|
|
||||||
# emacs-all-the-icons-fonts
|
|
||||||
# evil
|
|
||||||
# evil-collection
|
|
||||||
# evil-commentary
|
|
||||||
# evil-goggles
|
|
||||||
# flycheck
|
|
||||||
# flycheck-relint
|
|
||||||
# flymake
|
|
||||||
# form-feed
|
|
||||||
# general
|
|
||||||
# hl-todo
|
|
||||||
# ligature
|
|
||||||
# lsp-mode
|
|
||||||
# lsp-treemacs
|
|
||||||
# lsp-ui
|
|
||||||
# macrostep
|
|
||||||
# magit
|
|
||||||
# markdown-mode
|
|
||||||
# modus-themes
|
|
||||||
# move-text
|
|
||||||
# org-cliplink
|
|
||||||
org-contacts
|
|
||||||
# org-pomodoro
|
|
||||||
# nano-theme
|
|
||||||
# no-littering
|
|
||||||
# nov
|
|
||||||
# paredit
|
|
||||||
# peep-dired
|
|
||||||
# projectile
|
|
||||||
# rainbow-delimiters
|
|
||||||
# rainbow-mode
|
|
||||||
# relint
|
|
||||||
# ripgrep
|
|
||||||
# smartparens
|
|
||||||
# string-inflection
|
|
||||||
# svg-lib
|
|
||||||
# tldr
|
|
||||||
# toc-org
|
|
||||||
# treesit-grammars.with-all-grammars
|
|
||||||
# treemacs
|
|
||||||
# treemacs-evil
|
|
||||||
# treemacs-projectile
|
|
||||||
# treemacs-magit
|
|
||||||
# tree-sitter
|
|
||||||
# undo-tree
|
|
||||||
# use-package
|
|
||||||
# vertico
|
|
||||||
# vertico-posframe
|
|
||||||
vterm
|
vterm
|
||||||
# vterm-toggle
|
|
||||||
# which-key
|
|
||||||
# whitespace-cleanup-mode
|
|
||||||
# wakatime-mode
|
|
||||||
# ws-butler
|
|
||||||
]));
|
]));
|
||||||
in {
|
in {
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
environment.variables.PATH = ["$XDG_CONFIG_HOME/emacs/bin"];
|
environment.variables.PATH = ["$XDG_CONFIG_HOME/emacs/bin"];
|
||||||
home-manager.users.${username} = {
|
home-manager.users.${username} = {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
# needed my native-comp
|
# needed by native-comp
|
||||||
binutils
|
binutils
|
||||||
# Emacs itself
|
# Emacs itself
|
||||||
custom-emacs
|
customEmacs
|
||||||
|
|
||||||
# Doom dependencies
|
# Doom dependencies
|
||||||
git
|
git
|
||||||
|
@ -121,18 +52,11 @@ in {
|
||||||
editorconfig-core-c # per-project style config
|
editorconfig-core-c # per-project style config
|
||||||
# :tools lookup & :lang org +roam
|
# :tools lookup & :lang org +roam
|
||||||
sqlite
|
sqlite
|
||||||
# :lang latex & :lang org (latex previews)
|
|
||||||
# texlive.combined.scheme-medium
|
|
||||||
# :lang beancount
|
|
||||||
# beancount
|
|
||||||
# fava
|
|
||||||
# :lang nix
|
|
||||||
age
|
|
||||||
];
|
];
|
||||||
|
|
||||||
services.emacs = {
|
services.emacs = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = custom-emacs;
|
package = customEmacs;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue