mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-15 23:18:03 +02:00
23 lines
534 B
Nix
23 lines
534 B
Nix
modules:
|
|
{ pkgs, config, lib, ... }@args:
|
|
|
|
let
|
|
inherit (lib) mkEnableOption mkOption mkOptionType mkForce mkMerge mkIf types;
|
|
shared = import ./_shared.nix args;
|
|
cfg = config.programs.nixvim;
|
|
in
|
|
{
|
|
options = {
|
|
programs.nixvim = mkOption {
|
|
type = types.submodule ((modules pkgs) ++ [{
|
|
options.enable = mkEnableOption "nixvim";
|
|
config.wrapRc = mkForce true;
|
|
}]);
|
|
};
|
|
nixvim.helpers = shared.helpers;
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
environment.systemPackages = [ cfg.finalPackage ];
|
|
};
|
|
}
|