feat: Added emacs

This commit is contained in:
Nickiel12 2023-01-26 17:59:18 -08:00
parent f2c47ba4fe
commit faf7da6b3a
3 changed files with 27 additions and 0 deletions

View file

@ -28,6 +28,7 @@ in {
users.${user} = {
imports = [
./home.nix
../modules/emacs.nix
../modules/git.nix
../modules/wezterm.nix
../modules/urxvt.nix

View file

@ -44,6 +44,7 @@ in
pfetch
fortune
rmtrash
ripgrep
neofetch
ranger
exa

25
modules/emacs.nix Normal file
View file

@ -0,0 +1,25 @@
let
configRepoUrl = "https://github.com/Nickiel12/Nicks-Doom"
in
{
programs.emacs = {
enable = true;
package = pkgs.emacs-gtk;
};
services.emacs.enable = true;
home.activation.doom = lib.hm.dag.entryAfter["writeBoundary"] ''
if [ ! -d .emacs.d ]; then
git clone --depth 1 https://github.com/doomemacs/doomemacs .emacs.d
fi
mkdir -p .doom.d
git clone "${configRepoUrl}" "doom.d"
'';
home.packages = with pkgs; [
# Doom Emacs fonts, manually installed with
# M-x all-the-icons-install-fonts
emacs-all-the-icons-fonts
];
}