snowfield/home-manager-modules/emacs/default.nix
2023-11-19 22:53:59 +01:00

20 lines
365 B
Nix

{ config, pkgs, lib, ... }:
let
cfg = config.luj.programs.emacs;
in
with lib;
{
options.luj.programs.emacs = {
enable = mkEnableOption "Enable Emacs";
};
config = mkIf cfg.enable {
services.emacs.enable = true;
programs.doom-emacs = {
enable = true;
doomPrivateDir = ./doom.d;
emacsPackage = pkgs.emacs29-pgtk;
};
};
}