nix-community.nixvim/wrappers/darwin.nix

24 lines
534 B
Nix
Raw Normal View History

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