about summary refs log tree commit diff
path: root/home/emacs/default.nix
blob: b6c07d31815986377b53df7b0401af6dc66c1bd9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{ lib, config, pkgs, ... }:
let cfg = config.my.home.emacs;
in {
  options.my.home.emacs = with lib; {
    enable = mkEnableOption "emacs configuration";
  };

  config.home.packages = with pkgs;
    lib.mkIf cfg.enable ([
      emacsPgtkGcc
      # see https://github.com/hlissner/doom-emacs/issues/4138
      (aspellWithDicts (dicts: with dicts; [ en en-computers en-science ]))
    ]);
}