2021-12-25 13:56:50 +00:00
|
|
|
# My editor configurations. Take note I try to avert as much settings to create
|
|
|
|
# the configuration files with Nix. I prefer to handle the text editor
|
|
|
|
# configurations by hand as they are very chaotic and it is a hassle going
|
|
|
|
# through Nix whenever I need to change it.
|
|
|
|
#
|
|
|
|
# As much as I want 100% reproducibility with Nix, 5% of the remaining stuff
|
|
|
|
# for me is not worth to maintain.
|
|
|
|
{ config, options, lib, pkgs, ... }:
|
|
|
|
|
2022-01-09 05:38:59 +00:00
|
|
|
let cfg = config.profiles.editors;
|
2021-12-25 13:56:50 +00:00
|
|
|
in {
|
2022-01-09 05:38:59 +00:00
|
|
|
options.profiles.editors = {
|
2021-12-25 13:56:50 +00:00
|
|
|
neovim.enable = lib.mkEnableOption "foo-dogsquared's Neovim setup with Nix";
|
|
|
|
emacs.enable = lib.mkEnableOption "foo-dogsquared's (Doom) Emacs setup";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkMerge [
|
|
|
|
(lib.mkIf cfg.neovim.enable {
|
|
|
|
programs.neovim = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.neovim-nightly;
|
|
|
|
withPython3 = true;
|
|
|
|
withRuby = true;
|
|
|
|
withNodeJs = true;
|
2022-11-26 06:13:59 +00:00
|
|
|
|
|
|
|
plugins = with pkgs.vimPlugins; [
|
|
|
|
parinfer-rust
|
|
|
|
];
|
2021-12-25 13:56:50 +00:00
|
|
|
};
|
|
|
|
})
|
|
|
|
|
2022-11-26 06:13:59 +00:00
|
|
|
# I only use Emacs for org-roam (seriously... I only learned Emacs for
|
|
|
|
# that). Take note this profile doesn't setup Emacs-as-a-development-tool
|
|
|
|
# thing, rather Emacs-as-a-note-taking tool thing with the complete
|
|
|
|
# package.
|
2021-12-25 13:56:50 +00:00
|
|
|
(lib.mkIf cfg.emacs.enable {
|
2022-07-14 00:04:13 +00:00
|
|
|
programs.emacs = {
|
|
|
|
enable = true;
|
2023-06-08 04:14:05 +00:00
|
|
|
package = pkgs.emacs-unstable;
|
2022-07-14 00:04:13 +00:00
|
|
|
extraPackages = epkgs: with epkgs; [
|
|
|
|
vterm
|
|
|
|
pdf-tools
|
|
|
|
org-pdftools
|
|
|
|
org-roam
|
|
|
|
org-roam-ui
|
|
|
|
org-roam-bibtex
|
|
|
|
org-noter-pdftools
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2021-12-25 13:56:50 +00:00
|
|
|
# Doom Emacs dependencies.
|
|
|
|
home.packages = with pkgs; [
|
2022-11-29 13:06:37 +00:00
|
|
|
# This is installed just to get Geiser to properly work.
|
|
|
|
guile_3_0
|
|
|
|
|
2021-12-25 13:56:50 +00:00
|
|
|
# Required dependencies.
|
|
|
|
ripgrep
|
|
|
|
gnutls
|
|
|
|
emacs-all-the-icons-fonts
|
|
|
|
|
|
|
|
# Optional dependencies.
|
|
|
|
fd
|
|
|
|
imagemagick
|
|
|
|
zstd
|
|
|
|
|
|
|
|
# Module dependencies.
|
|
|
|
## :checkers spell
|
|
|
|
aspell
|
|
|
|
aspellDicts.en
|
|
|
|
aspellDicts.en-computers
|
|
|
|
|
|
|
|
## :tools lookup
|
|
|
|
wordnet
|
|
|
|
|
|
|
|
## :lang org +roam2
|
2023-08-23 10:58:41 +00:00
|
|
|
texlive.combined.scheme-medium
|
|
|
|
(python3.withPackages (ps: with ps; [ jupyter ]))
|
2021-12-25 13:56:50 +00:00
|
|
|
sqlite
|
2022-01-09 05:38:59 +00:00
|
|
|
anystyle-cli
|
2021-12-25 13:56:50 +00:00
|
|
|
];
|
|
|
|
})
|
|
|
|
];
|
|
|
|
}
|