- Add automatic SD image builds for Raspberry Pi via Forgejo Actions - Enable binfmt emulation on cryodev-main for aarch64 cross-builds - Add sd-image.nix module to cryodev-pi configuration - Create comprehensive docs/ structure with installation guides - Split installation docs into: first-install (server), reinstall, new-client (Pi) - Add lib/utils.nix and apps/rebuild from synix - Fix headplane module for new upstream API (tale/headplane) - Fix various module issues (mailserver stateVersion, option conflicts) - Add placeholder secrets.yaml files for both hosts - Remove old INSTRUCTIONS.md (content moved to docs/)
42 lines
954 B
Nix
42 lines
954 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
|
|
let
|
|
cfg = config.programs.nixvim;
|
|
plugin = cfg.plugins.treesitter;
|
|
|
|
cc = "${pkgs.gcc}/bin/gcc";
|
|
|
|
inherit (lib) mkDefault mkIf;
|
|
in
|
|
{
|
|
config = {
|
|
programs.nixvim = {
|
|
plugins.treesitter = {
|
|
enable = mkDefault true;
|
|
nixvimInjections = mkDefault true;
|
|
settings = {
|
|
folding.enable = mkDefault true;
|
|
highlight.enable = mkDefault true;
|
|
indent.enable = mkDefault true;
|
|
};
|
|
};
|
|
plugins.treesitter-context = mkIf plugin.enable { enable = mkDefault true; };
|
|
plugins.treesitter-textobjects = mkIf plugin.enable { enable = mkDefault true; };
|
|
};
|
|
|
|
# Fix for: ERROR `cc` executable not found.
|
|
environment.sessionVariables = mkIf plugin.enable {
|
|
CC = mkDefault cc;
|
|
};
|
|
|
|
# Fix for: WARNING `tree-sitter` executable not found
|
|
environment.systemPackages = mkIf plugin.enable [
|
|
plugin.package
|
|
];
|
|
};
|
|
}
|