nix-community.nixvim/wrappers/darwin.nix

34 lines
688 B
Nix
Raw Normal View History

modules: {
pkgs,
config,
lib,
...
} @ args: let
2022-12-30 21:12:07 +01:00
inherit (lib) mkEnableOption mkOption mkOptionType mkForce mkMerge mkIf types;
shared = import ./_shared.nix args;
2022-12-30 21:12:07 +01:00
cfg = config.programs.nixvim;
in {
2022-12-30 21:12:07 +01:00
options = {
programs.nixvim = mkOption {
type = types.submodule ((modules pkgs)
++ [
{
options.enable = mkEnableOption "nixvim";
config.wrapRc = mkForce true;
}
]);
2022-12-30 21:12:07 +01:00
};
nixvim.helpers = shared.helpers;
2022-12-30 21:12:07 +01:00
};
config = mkIf cfg.enable mkMerge [
{
environment.systemPackages = [cfg.finalPackage];
}
{
warnings = cfg.warnings;
assertions = cfg.assertions;
}
];
2022-12-30 21:12:07 +01:00
}