From 69b765519e3812560b0ca66aa31a70558d5bb3ee Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Sat, 1 Apr 2023 00:57:25 +0300 Subject: [PATCH] dev: get maximal from self.packages --- flake.nix | 3 ++- lib/module/default.nix | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index a0ab89e..b9755a4 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 5454b28..41dc41a 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];