users/foo-dogsquared: enable Neorg for NixVim setup and add Oils for Unix as part of dev't setup

This commit is contained in:
Gabriel Arazas 2024-10-21 15:26:05 +08:00
parent d704112695
commit c5638f2174
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360
2 changed files with 26 additions and 25 deletions

View File

@ -2,7 +2,7 @@
{
# The main star of the show.
plugins.neorg.enable = false;
plugins.neorg.enable = true;
# Set it up, set it up, set it up.
plugins.neorg.extraOptions = {
@ -18,9 +18,7 @@
"core.concealer" = helpers.emptyTable;
# Dear diary...
"core.journal".config = {
strategy = "flat";
};
"core.journal".config = { strategy = "flat"; };
# Norg ripping a page from org-mode.
"core.ui.calendar" = helpers.emptyTable;
@ -42,22 +40,24 @@
};
# Install the common text markup tree-sitter grammars.
plugins.treesitter.grammarPackages = with config.plugins.treesitter.package.builtGrammars; [
bibtex
cooklang
latex
ledger
markdown
markdown_inline
org
po
pod
rst
tsx
]
# Install the tree-sitter parsers required for the core.defaults Neorg
# module.
++ lib.optionals (config.plugins.neorg.extraOptions ? load."core.defaults")
plugins.treesitter.grammarPackages =
with config.plugins.treesitter.package.builtGrammars;
[
bibtex
cooklang
latex
ledger
markdown
markdown_inline
org
po
pod
rst
tsx
]
# Install the tree-sitter parsers required for the core.defaults Neorg
# module.
++ lib.optionals (config.plugins.neorg.extraOptions ? load."core.defaults")
(with pkgs.tree-sitter-grammars; [
tree-sitter-norg
tree-sitter-norg-meta

View File

@ -3,8 +3,7 @@
let
userCfg = config.users.foo-dogsquared;
cfg = userCfg.setups.development;
in
{
in {
options.users.foo-dogsquared.setups.development.enable =
lib.mkEnableOption "foo-dogsquared's software development setup";
@ -44,6 +43,7 @@ in
dt # Get that functional gawk.
recode # Convert between different encodings.
go-migrate # Go potential migraines.
oils-for-unix # Rev them up, reverent admin.
];
}
@ -85,9 +85,10 @@ in
})
(lib.mkIf (userCfg.setups.desktop.enable && pkgs.stdenv.isLinux) {
home.packages = with pkgs; [
d-spy # Some GNOME dev probably developed this.
];
home.packages = with pkgs;
[
d-spy # Some GNOME dev probably developed this.
];
})
]);
}