Added doomemacs to configuration
This commit is contained in:
parent
7a14aff779
commit
22c9b99399
6 changed files with 88 additions and 0 deletions
42
nixos/modules/emacs/default.nix
Normal file
42
nixos/modules/emacs/default.nix
Normal 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
|
||||
];
|
||||
}
|
||||
|
|
@ -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 = [
|
||||
|
|
|
|||
|
|
@ -20,6 +20,8 @@
|
|||
".gnupg"
|
||||
".ssh"
|
||||
".nixops"
|
||||
".doom.d"
|
||||
".emacs.d"
|
||||
".local/share/keyrings"
|
||||
".local/share/direnv"
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue