Add Doom Emacs

This commit is contained in:
Paul-Henri Froidmont 2023-03-17 13:02:05 +01:00
parent 2163e61821
commit 721504d51b
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE
8 changed files with 702 additions and 8 deletions

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, pkgs-unstable, ... }:
{ config, lib, pkgs, pkgs-unstable, nix-doom-emacs, ... }:
{
environment.pathsToLink = [ "/share/zsh" ];
@ -12,6 +12,7 @@
./froidmpa/htop.nix
./froidmpa/zsh.nix
./froidmpa/vscode.nix
nix-doom-emacs.hmModule
];
xsession = {
@ -54,6 +55,10 @@
inactiveInterval = 5;
lockCmd = "${pkgs.i3lock}/bin/i3lock -e -f -c 000000 -i ~/.wallpaper.png";
};
emacs = {
enable = true;
client.enable = true;
};
};
programs = {
@ -99,6 +104,22 @@
enableZshIntegration = true;
nix-direnv.enable = true;
};
doom-emacs = {
enable = true;
doomPrivateDir = ./files/doom.d;
emacsPackagesOverlay = final: prev: {
ob-ammonite = with final; (trivialBuild {
src = pkgs.fetchFromGitHub {
owner = "zwild";
repo = "ob-ammonite";
rev = "39937dff395e70aff76a4224fa49cf2ec6c57cca";
sha256 = pkgs.lib.fakeSha256;
};
pname = "ob-ammonite";
packageRequires = [ s dash editorconfig ];
});
};
};
newsboat = {
enable = true;
autoReload = true;
@ -198,7 +219,6 @@
stateVersion = "20.09";
sessionVariables = {
EDITOR = "vim";
QT_AUTO_SCREEN_SCALE_FACTOR = "0";
};
@ -274,6 +294,7 @@
httpie
rnix-lsp
metals
nixpkgs-fmt
zsh-syntax-highlighting