From f9a783904ecabd4f5b4a01102506ad333c9976b0 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 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];