diff --git a/flake.nix b/flake.nix index a0ab89e0..b9755a42 100644 --- a/flake.nix +++ b/flake.nix @@ -3,6 +3,7 @@ outputs = { nixpkgs, flake-parts, + self, ... } @ inputs: flake-parts.lib.mkFlake {inherit inputs;} { @@ -44,7 +45,7 @@ homeManagerModules.default = { imports = [ - ./lib/module + (import ./lib/module self.packages) ]; }; }; diff --git a/lib/module/default.nix b/lib/module/default.nix index 5454b28e..41dc41a5 100644 --- a/lib/module/default.nix +++ b/lib/module/default.nix @@ -1,13 +1,14 @@ # Home Manager module -{ +packages: { pkgs, config, lib ? pkgs.lib, + self, ... }: with lib; let cfg = config.programs.neovim-flake; - set = config.legacyPackages.neovim-maximal {mainConfig = cfg.settings;}; + set = self.packages.maximal {mainConfig = cfg.settings;}; in { meta.maintainers = [maintainers.notashelf];