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:
Matt Sturgeon 2024-07-08 05:51:51 +01:00
parent cfa44bbb66
commit 1b7efacdf4
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
7 changed files with 23 additions and 37 deletions

View file

@ -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 [
{