home: Extract emacs related config to module

This commit is contained in:
Alexander Kobjolke 2024-02-03 22:10:45 +01:00
parent e9b9a996e8
commit 16fcc510f6
10 changed files with 651 additions and 21 deletions

View file

@ -10,13 +10,13 @@ let
myEza = if builtins.hasAttr "eza" pkgs then "eza" else "exa";
in {
imports = [ ./alex/programs/neovim/default.nix ];
imports =
[ ./alex/programs/neovim/default.nix ./alex/programs/emacs/default.nix ];
programs.home-manager.enable = true;
home = {
stateVersion = "21.05";
sessionPath = [ "$HOME/.local/bin" "$HOME/.emacs.d/bin" ];
shellAliases = { e = "emacsclient -c $@"; };
sessionPath = [ "$HOME/.local/bin" ];
};
# do not show home-manager notifications
@ -140,11 +140,6 @@ in {
enableBashIntegration = true;
};
emacs = {
enable = true;
extraPackages = epkgs: with epkgs; [ vterm ];
};
gh = {
enable = true;
settings.git_protocol = "ssh";
@ -187,12 +182,6 @@ in {
defaultCacheTtlSsh = 300;
};
services.emacs = {
enable = true;
defaultEditor = true;
startWithUserSession = true;
};
home.file.".local" = {
recursive = true;
source = ./local;