2024-06-27 00:42:51 -03:00
|
|
|
{ pkgs, lib, ... }:
|
2024-06-26 02:12:09 -03:00
|
|
|
|
|
|
|
{
|
2024-06-27 00:42:51 -03:00
|
|
|
programs.emacs.enable = true;
|
|
|
|
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
# Optional for DOOM
|
|
|
|
clang
|
|
|
|
coreutils
|
|
|
|
fd
|
|
|
|
|
|
|
|
pandoc # For org-pandoc
|
2024-07-09 06:37:37 -03:00
|
|
|
(aspellWithDicts (
|
|
|
|
dicts: with dicts; [
|
|
|
|
en
|
|
|
|
pt_BR
|
|
|
|
]
|
|
|
|
)) # for flyspell
|
|
|
|
languagetool # for grammar
|
2024-07-11 05:09:49 -03:00
|
|
|
ledger # for accounting and org-ledger
|
2024-06-27 00:42:51 -03:00
|
|
|
];
|
|
|
|
|
|
|
|
# Neatly place the configuration files for doom in their right place.
|
|
|
|
xdg.configFile."doom" =
|
|
|
|
let
|
|
|
|
# What DOOM needs to be able to install/sync.
|
|
|
|
packagesNeeded = with pkgs; [
|
|
|
|
git
|
|
|
|
emacs
|
|
|
|
ripgrep
|
|
|
|
];
|
|
|
|
in
|
|
|
|
{
|
|
|
|
source = ./doom;
|
|
|
|
recursive = true;
|
|
|
|
|
|
|
|
onChange = # sh
|
|
|
|
''
|
|
|
|
# Need to set this so DOOM can find all binaries.
|
|
|
|
export PATH="${lib.strings.concatMapStrings (x: x + "/bin:") packagesNeeded}$PATH"
|
|
|
|
|
|
|
|
if [ ! -d "$HOME/.emacs.d" ]; then
|
|
|
|
git clone https://github.com/hlissner/doom-emacs $HOME/.emacs.d
|
|
|
|
$HOME/.emacs.d/bin/doom install
|
|
|
|
else
|
|
|
|
# Needed to apply the configuration changes.
|
|
|
|
$HOME/.emacs.d/bin/doom sync
|
|
|
|
fi
|
|
|
|
'';
|
|
|
|
};
|
2024-06-26 02:12:09 -03:00
|
|
|
}
|