mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
wrappers: bootstrap "helpers" directly
We don't need to pass a `getHelpers` function in, since we can just import `../lib/helpers.nix`.
This commit is contained in:
parent
cfa44bbb66
commit
1b7efacdf4
7 changed files with 23 additions and 37 deletions
|
@ -1,4 +1,4 @@
|
|||
{ self, getHelpers }:
|
||||
self:
|
||||
{
|
||||
pkgs,
|
||||
config,
|
||||
|
@ -15,7 +15,6 @@ let
|
|||
mkIf
|
||||
types
|
||||
;
|
||||
helpers = getHelpers pkgs false;
|
||||
cfg = config.programs.nixvim;
|
||||
in
|
||||
{
|
||||
|
@ -27,7 +26,7 @@ in
|
|||
specialArgs = {
|
||||
darwinConfig = config;
|
||||
defaultPkgs = pkgs;
|
||||
inherit helpers;
|
||||
inherit (config.nixvim) helpers;
|
||||
};
|
||||
modules = [
|
||||
./modules/darwin.nix
|
||||
|
@ -37,7 +36,7 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
imports = [ (import ./_shared.nix { inherit helpers; }) ];
|
||||
imports = [ (import ./_shared.nix { }) ];
|
||||
|
||||
config = mkIf cfg.enable (mkMerge [
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue