infrastructure/config/profiles/kat/home/emacs/default.nix
2021-03-05 00:36:51 +00:00

18 lines
520 B
Nix

{ config, lib, pkgs, sources, ... }:
let
emacs = pkgs.callPackage sources.nix-doom-emacs {
doomPrivateDir = "${./doom.d}";
emacsPackagesOverlay = self: super: {
magit-delta = super.magit-delta.overrideAttrs
(esuper: { buildInputs = esuper.buildInputs ++ [ pkgs.git ]; });
};
};
in {
config = lib.mkIf config.deploy.profile.kat {
home.sessionVariables.EDITOR = "emacs";
home.packages = [ emacs ];
home.file.".emacs.d/init.el".text = ''
(load "default.el")
'';
};
}