{ config, pkgs, ... }: { home.packages = with pkgs; [ (pkgs.emacsWithPackagesFromUsePackage { config = ./init.el; package = pkgs.emacs-pgtk; alwaysEnsure = true; extraEmacsPackages = epkgs: with epkgs; [ org-modern olivetti command-log-mode vertico corfu hotfuzz orderless evil evil-collection evil-snipe evil-owl evil-vimish-fold dashboard doom-themes doom-modeline nerd-icons nerd-icons-dired nerd-icons-corfu nerd-icons-ibuffer nerd-icons-completion yasnippet projectile treemacs treemacs-projectile treesit-grammars.with-all-grammars magit magit-file-icons vterm sudo-edit gdscript-mode nix-mode python python-mode lsp-mode flycheck lsp-ui lsp-treemacs ]; }) fira-code nerd-fonts.fira-code ]; home.file.".config/emacs/init.el".source = ./init.el; home.file.".config/emacs/themes/doom-stylix-theme.el".source = config.lib.stylix.colors { template = builtins.readFile ./doom-stylix-theme.el.mustache; extension = ".el"; }; }