nixos-config/configs/nixvim/fiesta/modules/setups/note-taking.nix
Gabriel Arazas 53783fc910
nixvimConfigs/fiesta/setups/note-taking: init
Though, in practice, this module may not be used and set it per-environment
for its specificities.
2024-02-02 10:53:35 +08:00

36 lines
865 B
Nix

{ config, lib, pkgs, ... }:
let
nixvimCfg = config.nixvimConfigs.fiesta;
cfg = nixvimCfg.setups.note-taking;
in
{
options.nixvimConfigs.fiesta.setups.note-taking.enable =
lib.mkEnableOption "basic note-taking setup";
config = lib.mkIf cfg.enable {
# The main star of the show.
plugins.neorg.enable = true;
# Set it up, set it up.
plugins.neorg.extraOptions = {
lazy_loading = true;
# The basic bare essentials.
load = {
"core.defaults" = { __empty = null; };
"core.concealer" = { __empty = null; };
};
};
# Install the tree-sitter parsers.
plugins.treesitter.grammarPackages =
lib.mkIf
(config.plugins.neorg.extraOptions ? load."core.defaults")
(with pkgs.tree-sitter-grammars; [
tree-sitter-norg
tree-sitter-norg-meta
]);
};
}