mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
31 lines
432 B
Nix
31 lines
432 B
Nix
self:
|
|
{
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
let
|
|
inherit (lib)
|
|
mkIf
|
|
;
|
|
cfg = config.programs.nixvim;
|
|
evalArgs = {
|
|
extraSpecialArgs = {
|
|
darwinConfig = config;
|
|
};
|
|
modules = [
|
|
./modules/darwin.nix
|
|
];
|
|
};
|
|
in
|
|
{
|
|
_file = ./darwin.nix;
|
|
|
|
imports = [ (import ./_shared.nix { inherit self evalArgs; }) ];
|
|
|
|
config = mkIf cfg.enable {
|
|
environment.systemPackages = [
|
|
cfg.build.package
|
|
];
|
|
};
|
|
}
|