emacs: switch to stable package

This commit is contained in:
Charlie Root 2024-10-01 16:08:04 +02:00
commit c5e42d858b
Signed by: faukah
SSH key fingerprint: SHA256:jpYIt4Vkz1NBTQcks/N9OPTfTFxE6KF2W/rV7hrfrIw

View file

@ -10,27 +10,27 @@
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.
newpkgs = # newpkgs =
pkgs.appendOverlays # pkgs.appendOverlays
(with inputs.emacs-overlay.overlays; [ # (with inputs.emacs-overlay.overlays; [
emacs # emacs
package # package
]); # ]);
custom-emacs = with newpkgs; # custom-emacs = with newpkgs;
(emacsPackagesFor emacs-pgtk) # (emacsPackagesFor emacs-pgtk)
.emacsWithPackages (epkgs: # .emacsWithPackages (epkgs:
with epkgs; [ # with epkgs; [
vterm # vterm
treesit-grammars.with-all-grammars # treesit-grammars.with-all-grammars
]); # ]);
in { in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
home-manager.users.${username} = { home-manager.users.${username} = {
home.packages = with pkgs; [ home.packages = with pkgs; [
custom-emacs # custom-emacs
clang-tools clang-tools
emacs30-pgtk
binutils binutils
## Doom dependencies ## Doom dependencies
@ -62,7 +62,7 @@ in {
services.emacs = { services.emacs = {
enable = true; enable = true;
package = custom-emacs; package = pkgs.emacs30-pgtk;
}; };
}; };
}; };