2023-01-26 18:55:13 -08:00
|
|
|
{ pkgs, lib, ... }:
|
2023-01-26 17:59:18 -08:00
|
|
|
let
|
|
|
|
|
2023-01-26 18:55:13 -08:00
|
|
|
configRepoUrl = "https://github.com/Nickiel12/Nicks-Doom";
|
|
|
|
git = "${pkgs.git}/bin/git";
|
2023-01-26 17:59:18 -08:00
|
|
|
|
|
|
|
in
|
|
|
|
{
|
|
|
|
programs.emacs = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.emacs-gtk;
|
2023-01-31 17:52:23 -08:00
|
|
|
extraPackages = epkgs: [ epkgs.vterm ];
|
2023-01-26 17:59:18 -08:00
|
|
|
};
|
2023-01-27 12:46:41 -08:00
|
|
|
|
|
|
|
services.emacs = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
home.activation.doom = lib.hm.dag.entryAfter["writeBoundary"] ''
|
2023-01-26 17:59:18 -08:00
|
|
|
if [ ! -d .emacs.d ]; then
|
2023-01-26 18:55:13 -08:00
|
|
|
${git} clone --depth 1 https://github.com/doomemacs/doomemacs .emacs.d
|
2023-01-26 17:59:18 -08:00
|
|
|
fi
|
2023-01-27 17:37:26 -08:00
|
|
|
if [ ! -d .doom.d ]; then
|
|
|
|
${git} clone https://github.com/Nickiel12/Nicks-Doom .doom.d
|
|
|
|
fi
|
2023-01-26 17:59:18 -08:00
|
|
|
'';
|
2023-01-27 12:46:41 -08:00
|
|
|
# mkdir -p .doom.d
|
|
|
|
# ${git} clone ${configRepoUrl} .doom.d
|
2023-01-26 17:59:18 -08:00
|
|
|
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
# Doom Emacs fonts, manually installed with
|
|
|
|
# M-x all-the-icons-install-fonts
|
|
|
|
emacs-all-the-icons-fonts
|
|
|
|
];
|
|
|
|
}
|