Regenerated
This commit is contained in:
+12
-65
@@ -1223,88 +1223,35 @@ This sets up the emacs terminal
|
||||
{ pkgs, config, ... }:
|
||||
|
||||
let
|
||||
username = config.defaultUser or "henrov";
|
||||
|
||||
# Paths to your init files
|
||||
initFile = "./init.el";
|
||||
earlyInitFile = "./early-init.el";
|
||||
username = config.defaultUser or "henrov";
|
||||
in
|
||||
{
|
||||
# Minimal system-wide Emacs package
|
||||
environment.systemPackages = [
|
||||
pkgs.emacs-pgtk.override { withTreeSitter = true; }
|
||||
];
|
||||
|
||||
# Home Manager Emacs config
|
||||
home-manager.users.${username} = {
|
||||
home.stateVersion = "26.05"; # or the version of Home Manager you're using
|
||||
home.stateVersion = "26.05";
|
||||
|
||||
programs.emacs = {
|
||||
enable = true;
|
||||
package = pkgs.emacs-pgtk.override { withTreeSitter = true; };
|
||||
|
||||
extraPackages = epkgs: with epkgs; [
|
||||
# Core dev and language support
|
||||
manualPackages.treesit-grammars.with-all-grammars
|
||||
rust-mode
|
||||
rustic
|
||||
nix-mode
|
||||
hcl-mode
|
||||
|
||||
# UI & workflow
|
||||
nerd-icons
|
||||
doom-modeline
|
||||
diminish
|
||||
eldoc
|
||||
eldoc-box
|
||||
pulsar
|
||||
which-key
|
||||
avy
|
||||
consult
|
||||
vertico
|
||||
marginalia
|
||||
crux
|
||||
shell-pop
|
||||
|
||||
# Completion/snippets
|
||||
nerd-icons-corfu
|
||||
corfu
|
||||
cape
|
||||
orderless
|
||||
yasnippet
|
||||
yasnippet-snippets
|
||||
|
||||
# Utilities
|
||||
rg
|
||||
exec-path-from-shell
|
||||
eat
|
||||
f
|
||||
gptel
|
||||
nixpkgs-fmt
|
||||
envrc
|
||||
|
||||
# Theming
|
||||
catppuccin-theme
|
||||
|
||||
# Git
|
||||
magit
|
||||
|
||||
# Editing/workflow
|
||||
expreg
|
||||
vundo
|
||||
puni
|
||||
|
||||
# Error/side panels
|
||||
sideline
|
||||
sideline-flymake
|
||||
sideline-eglot
|
||||
rust-mode rustic nix-mode hcl-mode
|
||||
nerd-icons doom-modeline diminish eldoc eldoc-box pulsar which-key
|
||||
avy consult vertico marginalia crux shell-pop
|
||||
nerd-icons-corfu corfu cape orderless yasnippet yasnippet-snippets
|
||||
rg exec-path-from-shell eat f gptel nixpkgs-fmt envrc
|
||||
catppuccin-theme magit expreg vundo puni
|
||||
sideline sideline-flymake sideline-eglot
|
||||
];
|
||||
|
||||
# Load your init files from assets
|
||||
initFile = initFile;
|
||||
earlyInitFile = earlyInitFile;
|
||||
initFile = ./init.el;
|
||||
earlyInitFile = ./early-init.el;
|
||||
};
|
||||
|
||||
# Useful session variables
|
||||
home.sessionVariables = {
|
||||
EDITOR = "emacs";
|
||||
XDG_SCREENSHOTS_DIR = "~/screenshots";
|
||||
|
||||
Reference in New Issue
Block a user