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,
@ -14,7 +14,6 @@ let
mkIf
types
;
helpers = getHelpers pkgs false;
cfg = config.programs.nixvim;
in
{
@ -26,7 +25,7 @@ in
specialArgs = {
hmConfig = config;
defaultPkgs = pkgs;
inherit helpers;
inherit (config.nixvim) helpers;
};
modules = [
./modules/hm.nix
@ -38,7 +37,6 @@ in
imports = [
(import ./_shared.nix {
inherit helpers;
filesOpt = [
"xdg"
"configFile"