mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-25 01:18:26 +02:00
feat: enable emacs on fern, add dependencies for emacs/neovim
This commit is contained in:
@@ -16,7 +16,7 @@
|
|||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.modules.editors.emacs;
|
cfg = config.modules.editors.emacs;
|
||||||
envExtra = ''
|
envExtra = ''
|
||||||
export PATH="$XDG_CONFIG_HOME/emacs/bin:$PATH"
|
export PATH="${config.xdg.cacheHome}/emacs/bin:$PATH"
|
||||||
'';
|
'';
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
e = "emacs";
|
e = "emacs";
|
||||||
@@ -34,13 +34,9 @@ in {
|
|||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
## Emacs itself
|
## Emacs itself
|
||||||
binutils # native-comp needs 'as', provided by this
|
|
||||||
# 28.2 + native-comp
|
|
||||||
((emacsPackagesFor emacs-unstable-nox).emacsWithPackages
|
((emacsPackagesFor emacs-unstable-nox).emacsWithPackages
|
||||||
(epkgs: [
|
(epkgs: [
|
||||||
epkgs.vterm
|
epkgs.vterm
|
||||||
epkgs.rime
|
|
||||||
epkgs.meow
|
|
||||||
]))
|
]))
|
||||||
emacs-all-the-icons-fonts
|
emacs-all-the-icons-fonts
|
||||||
|
|
||||||
|
|||||||
@@ -84,6 +84,10 @@
|
|||||||
jsonnet-language-server
|
jsonnet-language-server
|
||||||
hadolint # Dockerfile linter
|
hadolint # Dockerfile linter
|
||||||
|
|
||||||
|
# -- Scheme
|
||||||
|
guile
|
||||||
|
racket-minimal
|
||||||
|
|
||||||
#-- Others
|
#-- Others
|
||||||
taplo # TOML language server / formatter / validator
|
taplo # TOML language server / formatter / validator
|
||||||
nodePackages.yaml-language-server
|
nodePackages.yaml-language-server
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
_: {
|
{
|
||||||
programs.ssh = {
|
programs.ssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
@@ -11,4 +11,9 @@ _: {
|
|||||||
IdentitiesOnly yes
|
IdentitiesOnly yes
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
modules.editors.emacs = {
|
||||||
|
enable = true;
|
||||||
|
doom.enable = true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user