nixos-config/configs/flake-parts/nixvim.nix
Gabriel Arazas 2dd2175250
flake-parts/setups/nixvim: merge into a unified list of components
At least, it made the module code and configuration easier with
`nixpkgs.lib.cartesianProductOfSets`.
2024-06-11 16:39:16 +08:00

40 lines
892 B
Nix

{ inputs, lib, ... }:
{
setups.nixvim.configs = {
fiesta = {
components = [
{
nixpkgsBranch = "nixos-unstable";
nixvimBranch = "nixvim-unstable";
neovimPackage = pkgs: pkgs.neovim;
overlays = [
inputs.neovim-nightly-overlay.overlays.default
];
}
];
};
trovebelt = {
components = lib.cartesianProductOfSets {
nixpkgsBranch = [ "nixos-unstable" ];
nixvimBranch = [ "nixvim-unstable" ];
neovimPackage = [ (pkgs: pkgs.neovim) ];
overlays = [
[ inputs.neovim-nightly-overlay.overlays.default ]
[ ]
];
};
};
};
setups.nixvim.sharedModules = [
# The rainbow road to ricing your raw materials.
inputs.self.nixvimModules.bahaghari
];
flake = {
nixvimModules.default = ../../modules/nixvim;
};
}