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, ... }:
{
programs.emacs = {
enable = true;
package = pkgs.emacs-pgtk.override { withTreeSitter = true; };
# NixOS Configuration
environment.systemPackages = with pkgs; [
# Add system-wide packages here, if any
];
# Group related packages for clarity and easier maintenance
extraPackages = epkgs: with epkgs; [
# Tree-sitter and language support
manualPackages.treesit-grammars.with-all-grammars
rust-mode
rustic
nix-mode
hcl-mode
# Home Manager Configuration for the user 'henrov'
home-manager.users.henrov = {
programs.emacs = {
enable = true;
package = pkgs.emacs-pgtk.override { withTreeSitter = true; };
# UI/UX and navigation
nerd-icons
doom-modeline
diminish
eldoc
eldoc-box
pulsar
which-key
avy
consult
vertico
marginalia
crux
shell-pop
# Group related packages for clarity and easier maintenance
extraPackages = epkgs: with epkgs; [
# Tree-sitter and language support
manualPackages.treesit-grammars.with-all-grammars
rust-mode
rustic
nix-mode
hcl-mode
# Completion and snippets
nerd-icons-corfu
corfu
cape
orderless
yasnippet
yasnippet-snippets
# UI/UX and navigation
nerd-icons
doom-modeline
diminish
eldoc
eldoc-box
pulsar
which-key
avy
consult
vertico
marginalia
crux
shell-pop
# Utilities and tools
rg
exec-path-from-shell
eat
f
gptel
nixpkgs-fmt
envrc
# Completion and snippets
nerd-icons-corfu
corfu
cape
orderless
yasnippet
yasnippet-snippets
# Theming
catppuccin-theme
# Utilities and tools
rg
exec-path-from-shell
eat
f
gptel
nixpkgs-fmt
envrc
# Git
magit
# Theming
catppuccin-theme
# Editing and workflow
expreg
vundo
puni
# Git
magit
# Error and side panel support
sideline
sideline-flymake
sideline-eglot
];
};
# Editing and workflow
expreg
vundo
puni
# Home Manager session variables
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";
# Error and side panel support
sideline
sideline-flymake
sideline-eglot
];
};
"emacs/init.el" = {
source = ./init.el;
target = ".emacs.d/init.el";
# Home Manager session variables
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
** =generated/system/applications/terminal_shell/early-init.el=
@@ -1,84 +1,95 @@
{ pkgs, ... }:
{
programs.emacs = {
enable = true;
package = pkgs.emacs-pgtk.override { withTreeSitter = true; };
# NixOS Configuration
environment.systemPackages = with pkgs; [
# Add system-wide packages here, if any
];
# Group related packages for clarity and easier maintenance
extraPackages = epkgs: with epkgs; [
# Tree-sitter and language support
manualPackages.treesit-grammars.with-all-grammars
rust-mode
rustic
nix-mode
hcl-mode
# Home Manager Configuration for the user 'henrov'
home-manager.users.henrov = {
programs.emacs = {
enable = true;
package = pkgs.emacs-pgtk.override { withTreeSitter = true; };
# UI/UX and navigation
nerd-icons
doom-modeline
diminish
eldoc
eldoc-box
pulsar
which-key
avy
consult
vertico
marginalia
crux
shell-pop
# Group related packages for clarity and easier maintenance
extraPackages = epkgs: with epkgs; [
# Tree-sitter and language support
manualPackages.treesit-grammars.with-all-grammars
rust-mode
rustic
nix-mode
hcl-mode
# Completion and snippets
nerd-icons-corfu
corfu
cape
orderless
yasnippet
yasnippet-snippets
# UI/UX and navigation
nerd-icons
doom-modeline
diminish
eldoc
eldoc-box
pulsar
which-key
avy
consult
vertico
marginalia
crux
shell-pop
# Utilities and tools
rg
exec-path-from-shell
eat
f
gptel
nixpkgs-fmt
envrc
# Completion and snippets
nerd-icons-corfu
corfu
cape
orderless
yasnippet
yasnippet-snippets
# Theming
catppuccin-theme
# Utilities and tools
rg
exec-path-from-shell
eat
f
gptel
nixpkgs-fmt
envrc
# Git
magit
# Theming
catppuccin-theme
# Editing and workflow
expreg
vundo
puni
# Git
magit
# Error and side panel support
sideline
sideline-flymake
sideline-eglot
];
};
# Editing and workflow
expreg
vundo
puni
# Home Manager session variables
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";
# Error and side panel support
sideline
sideline-flymake
sideline-eglot
];
};
"emacs/init.el" = {
source = ./init.el;
target = ".emacs.d/init.el";
# Home Manager session variables
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;
}