mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 18:23:54 -05:00
36 lines
704 B
Nix
36 lines
704 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}: {
|
|
options = {alyraffauf.apps.emacs.enable = lib.mkEnableOption "Enables emacs.";};
|
|
|
|
config = lib.mkIf config.alyraffauf.apps.emacs.enable {
|
|
programs.emacs = {
|
|
enable = true;
|
|
extraPackages = epkgs: (with epkgs; [
|
|
better-defaults
|
|
catppuccin-theme
|
|
markdown-mode
|
|
nix-mode
|
|
org
|
|
org-bullets
|
|
org-journal
|
|
org-roam
|
|
ox-pandoc
|
|
projectile
|
|
python
|
|
treemacs
|
|
treemacs-projectile
|
|
treemacs-tab-bar
|
|
use-package
|
|
yaml
|
|
yaml-mode
|
|
]);
|
|
package = pkgs.emacs-nox;
|
|
extraConfig = builtins.readFile ./emacs.el;
|
|
};
|
|
};
|
|
}
|