Moved emacs to home manager config

This commit is contained in:
Aleksandr Lebedev 2025-07-25 23:42:39 +02:00
parent 9c895e9cc0
commit 4467239f01
7 changed files with 29 additions and 80 deletions

View file

@ -1,17 +0,0 @@
{
config,
pkgs,
lib,
inputs,
hwconfig,
...
}: let
emacs = inputs.emacs-kylekrein.packages.${hwconfig.system}.with-lsps;
in {
services.emacs.enable = true;
services.emacs.startWithGraphical = true;
services.emacs.install = true;
services.emacs.package = emacs;
environment.systemPackages = [emacs];
}

View file

@ -1,52 +0,0 @@
{
pkgs,
emacs,
}: {
packages = with pkgs; [
git
gzip
wkhtmltopdf
zip
unzip
gnutar
libvterm
libtool
emacs
ripgrep
fd
ghostscript
coreutils
clang
cmake
nixfmt-rfc-style
markdownlint-cli
pandoc
groff
gnumake
python3
isort
pipenv
python313Packages.nose2
python313Packages.pytest
graphviz
shellcheck
nodejs_23
(pkgs.writeShellScriptBin "doom-install" ''
${pkgs.git}/bin/git clone --depth 1 https://github.com/doomemacs/doomemacs ~/.emacs.d
${pkgs.git}/bin/git clone https://github.com/KyleKrein/doomemacs.git ~/.doom.d
~/.emacs.d/bin/doom install
~/.emacs.d/bin/doom sync
pidof emacs || ${emacs}/bin/emacs --daemon &
'')
(pkgs.writeShellScriptBin "doom-sync" ''
~/.emacs.d/bin/doom sync --aot --force
'')
(pkgs.writeShellScriptBin "doom-upgrade" ''
~/.emacs.d/bin/doom upgrade
'')
(pkgs.writeShellScriptBin "doom" ''
${emacs}/bin/emacsclient -c -a "${emacs}/bin/emacs"
'')
];
}