wrappers: make _shared.nix return a module

This commit is contained in:
Matt Sturgeon 2024-07-08 05:00:44 +01:00
parent 97fa47376b
commit cfa44bbb66
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
4 changed files with 75 additions and 38 deletions

View file

@ -16,7 +16,6 @@ let
types
;
helpers = getHelpers pkgs false;
shared = import ./_shared.nix helpers args;
cfg = config.programs.nixvim;
in
{
@ -36,9 +35,10 @@ in
];
};
};
nixvim.helpers = shared.helpers;
};
imports = [ (import ./_shared.nix { inherit helpers; }) ];
config = mkIf cfg.enable (mkMerge [
{
environment.systemPackages = [