58 lines
1.3 KiB
Nix
58 lines
1.3 KiB
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
inputs,
|
|
...
|
|
}: let
|
|
emacs = pkgs.emacs;#pkgs.emacs-pgtk;
|
|
in {
|
|
services.emacs.enable = true;
|
|
services.emacs.startWithGraphical = true;
|
|
services.emacs.install = true;
|
|
services.emacs.package = emacs; #pkgs.emacs-unstable
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
git
|
|
libvterm
|
|
libtool
|
|
emacs
|
|
ripgrep
|
|
fd
|
|
coreutils
|
|
clang
|
|
cmake
|
|
nixfmt-rfc-style
|
|
markdownlint-cli
|
|
pandoc
|
|
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"
|
|
'')
|
|
];
|
|
nixpkgs.overlays = [
|
|
inputs.emacs-overlay.overlays.default
|
|
];
|
|
}
|