mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2024-11-22 12:49:32 -08:00
feat: Added emacs
This commit is contained in:
parent
f2c47ba4fe
commit
faf7da6b3a
3 changed files with 27 additions and 0 deletions
|
@ -28,6 +28,7 @@ in {
|
|||
users.${user} = {
|
||||
imports = [
|
||||
./home.nix
|
||||
../modules/emacs.nix
|
||||
../modules/git.nix
|
||||
../modules/wezterm.nix
|
||||
../modules/urxvt.nix
|
||||
|
|
|
@ -44,6 +44,7 @@ in
|
|||
pfetch
|
||||
fortune
|
||||
rmtrash
|
||||
ripgrep
|
||||
neofetch
|
||||
ranger
|
||||
exa
|
||||
|
|
25
modules/emacs.nix
Normal file
25
modules/emacs.nix
Normal 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
|
||||
];
|
||||
}
|
Loading…
Reference in a new issue