Adding import ./emacs.nix

This commit is contained in:
2026-03-14 19:33:11 +00:00
parent ba1977a667
commit 83c077fa29
2 changed files with 159 additions and 136 deletions
+80 -68
View File
@@ -1773,87 +1773,99 @@ This sets up the emacs terminal
{ pkgs, ... }: { pkgs, ... }:
{ {
programs.emacs = { # NixOS Configuration
enable = true; environment.systemPackages = with pkgs; [
package = pkgs.emacs-pgtk.override { withTreeSitter = true; }; # Add system-wide packages here, if any
];
# Group related packages for clarity and easier maintenance # Home Manager Configuration for the user 'henrov'
extraPackages = epkgs: with epkgs; [ home-manager.users.henrov = {
# Tree-sitter and language support programs.emacs = {
manualPackages.treesit-grammars.with-all-grammars enable = true;
rust-mode package = pkgs.emacs-pgtk.override { withTreeSitter = true; };
rustic
nix-mode
hcl-mode
# UI/UX and navigation # Group related packages for clarity and easier maintenance
nerd-icons extraPackages = epkgs: with epkgs; [
doom-modeline # Tree-sitter and language support
diminish manualPackages.treesit-grammars.with-all-grammars
eldoc rust-mode
eldoc-box rustic
pulsar nix-mode
which-key hcl-mode
avy
consult
vertico
marginalia
crux
shell-pop
# Completion and snippets # UI/UX and navigation
nerd-icons-corfu nerd-icons
corfu doom-modeline
cape diminish
orderless eldoc
yasnippet eldoc-box
yasnippet-snippets pulsar
which-key
avy
consult
vertico
marginalia
crux
shell-pop
# Utilities and tools # Completion and snippets
rg nerd-icons-corfu
exec-path-from-shell corfu
eat cape
f orderless
gptel yasnippet
nixpkgs-fmt yasnippet-snippets
envrc
# Theming # Utilities and tools
catppuccin-theme rg
exec-path-from-shell
eat
f
gptel
nixpkgs-fmt
envrc
# Git # Theming
magit catppuccin-theme
# Editing and workflow # Git
expreg magit
vundo
puni
# Error and side panel support # Editing and workflow
sideline expreg
sideline-flymake vundo
sideline-eglot puni
];
};
# Home Manager session variables # Error and side panel support
home.sessionVariables = { sideline
EDITOR = "emacs"; sideline-flymake
XDG_SCREENSHOTS_DIR = "~/screenshots"; sideline-eglot
}; ];
# Home Manager file management
home.file = {
"emacs/early-init.el" = {
source = ./early-init.el;
target = ".emacs.d/early-init.el";
}; };
"emacs/init.el" = {
source = ./init.el; # Home Manager session variables
target = ".emacs.d/init.el"; home.sessionVariables = {
EDITOR = "emacs";
XDG_SCREENSHOTS_DIR = "~/screenshots";
};
# Home Manager file management
home.file = {
"emacs/early-init.el" = {
source = ./early-init.el;
target = ".emacs.d/early-init.el";
};
"emacs/init.el" = {
source = ./init.el;
target = ".emacs.d/init.el";
};
}; };
}; };
# If you need additional services or system configurations, add them here
services.nextcloud-client.enable = true;
} }
#+END_SRC #+END_SRC
** =generated/system/applications/terminal_shell/early-init.el= ** =generated/system/applications/terminal_shell/early-init.el=
@@ -1,84 +1,95 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
programs.emacs = { # NixOS Configuration
enable = true; environment.systemPackages = with pkgs; [
package = pkgs.emacs-pgtk.override { withTreeSitter = true; }; # Add system-wide packages here, if any
];
# Group related packages for clarity and easier maintenance # Home Manager Configuration for the user 'henrov'
extraPackages = epkgs: with epkgs; [ home-manager.users.henrov = {
# Tree-sitter and language support programs.emacs = {
manualPackages.treesit-grammars.with-all-grammars enable = true;
rust-mode package = pkgs.emacs-pgtk.override { withTreeSitter = true; };
rustic
nix-mode
hcl-mode
# UI/UX and navigation # Group related packages for clarity and easier maintenance
nerd-icons extraPackages = epkgs: with epkgs; [
doom-modeline # Tree-sitter and language support
diminish manualPackages.treesit-grammars.with-all-grammars
eldoc rust-mode
eldoc-box rustic
pulsar nix-mode
which-key hcl-mode
avy
consult
vertico
marginalia
crux
shell-pop
# Completion and snippets # UI/UX and navigation
nerd-icons-corfu nerd-icons
corfu doom-modeline
cape diminish
orderless eldoc
yasnippet eldoc-box
yasnippet-snippets pulsar
which-key
avy
consult
vertico
marginalia
crux
shell-pop
# Utilities and tools # Completion and snippets
rg nerd-icons-corfu
exec-path-from-shell corfu
eat cape
f orderless
gptel yasnippet
nixpkgs-fmt yasnippet-snippets
envrc
# Theming # Utilities and tools
catppuccin-theme rg
exec-path-from-shell
eat
f
gptel
nixpkgs-fmt
envrc
# Git # Theming
magit catppuccin-theme
# Editing and workflow # Git
expreg magit
vundo
puni
# Error and side panel support # Editing and workflow
sideline expreg
sideline-flymake vundo
sideline-eglot puni
];
};
# Home Manager session variables # Error and side panel support
home.sessionVariables = { sideline
EDITOR = "emacs"; sideline-flymake
XDG_SCREENSHOTS_DIR = "~/screenshots"; sideline-eglot
}; ];
# Home Manager file management
home.file = {
"emacs/early-init.el" = {
source = ./early-init.el;
target = ".emacs.d/early-init.el";
}; };
"emacs/init.el" = {
source = ./init.el; # Home Manager session variables
target = ".emacs.d/init.el"; home.sessionVariables = {
EDITOR = "emacs";
XDG_SCREENSHOTS_DIR = "~/screenshots";
};
# Home Manager file management
home.file = {
"emacs/early-init.el" = {
source = ./early-init.el;
target = ".emacs.d/early-init.el";
};
"emacs/init.el" = {
source = ./init.el;
target = ".emacs.d/init.el";
};
}; };
}; };
# If you need additional services or system configurations, add them here
services.nextcloud-client.enable = true;
} }