Added doomemacs to configuration

This commit is contained in:
Aleksandr Lebedev 2025-01-15 00:14:11 +01:00
parent 7a14aff779
commit 22c9b99399
6 changed files with 88 additions and 0 deletions

View file

@ -25,6 +25,7 @@
./modules/sddm
./modules/services/autoupgrade
./modules/sops
./modules/emacs
./hosts/${hwconfig.hostname}
]
++ lib.optional (hwconfig.useImpermanence) ./modules/impermanence;

View file

@ -0,0 +1,42 @@
{
config,
pkgs,
lib,
inputs,
...
}: let
emacs = pkgs.emacs;
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
emacs
ripgrep
fd
coreutils
clang
(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
'')
(pkgs.writeShellScriptBin "doom-upgrade" ''
~/.emacs.d/bin/doom upgrade
'')
(pkgs.writeShellScriptBin "doom" ''
${emacs}/bin/emacsclient -c
'')
];
nixpkgs.overlays = [
inputs.emacs-overlay.overlays.default
];
}

View file

@ -49,6 +49,7 @@ in {
"${pkgs.clipse}/bin/clipse -listen &"
"${pkgs.swww}/bin/swww-daemon &"
"${pkgs.swww}/bin/swww img ${wallpaper-image} &"
"emacs --daemon &"
#"${pkgs.kando}/bin/kando"
];
exec = [

View file

@ -20,6 +20,8 @@
".gnupg"
".ssh"
".nixops"
".doom.d"
".emacs.d"
".local/share/keyrings"
".local/share/direnv"
{