dev: get maximal from self.packages

This commit is contained in:
NotAShelf 2023-04-01 00:57:25 +03:00
parent 86503360d4
commit 69b765519e
No known key found for this signature in database
GPG Key ID: F0D14CCB5ED5AA22
2 changed files with 5 additions and 3 deletions

View File

@ -3,6 +3,7 @@
outputs = { outputs = {
nixpkgs, nixpkgs,
flake-parts, flake-parts,
self,
... ...
} @ inputs: } @ inputs:
flake-parts.lib.mkFlake {inherit inputs;} { flake-parts.lib.mkFlake {inherit inputs;} {
@ -44,7 +45,7 @@
homeManagerModules.default = { homeManagerModules.default = {
imports = [ imports = [
./lib/module (import ./lib/module self.packages)
]; ];
}; };
}; };

View File

@ -1,13 +1,14 @@
# Home Manager module # Home Manager module
{ packages: {
pkgs, pkgs,
config, config,
lib ? pkgs.lib, lib ? pkgs.lib,
self,
... ...
}: }:
with lib; let with lib; let
cfg = config.programs.neovim-flake; cfg = config.programs.neovim-flake;
set = config.legacyPackages.neovim-maximal {mainConfig = cfg.settings;}; set = self.packages.maximal {mainConfig = cfg.settings;};
in { in {
meta.maintainers = [maintainers.notashelf]; meta.maintainers = [maintainers.notashelf];