From d91ac4b20b929ab864a87c5de8909c19a497fa65 Mon Sep 17 00:00:00 2001 From: FlafyDev Date: Sat, 1 Apr 2023 15:19:46 +0300 Subject: [PATCH] fix(hm module): use neovimConfiguration to make package --- flake.nix | 2 +- lib/module/default.nix | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index b9755a42..f1661b15 100644 --- a/flake.nix +++ b/flake.nix @@ -45,7 +45,7 @@ homeManagerModules.default = { imports = [ - (import ./lib/module self.packages) + (import ./lib/module self.packages inputs) ]; }; }; diff --git a/lib/module/default.nix b/lib/module/default.nix index 025b3409..7689aef8 100644 --- a/lib/module/default.nix +++ b/lib/module/default.nix @@ -1,5 +1,5 @@ # Home Manager module -packages: { +packages: inputs: { pkgs, config, lib ? pkgs.lib, @@ -8,7 +8,11 @@ packages: { }: with lib; let cfg = config.programs.neovim-flake; - set = packages.${pkgs.system}.maximal.override {mainConfig = cfg.settings;}; + inherit (import ../../extra.nix inputs) neovimConfiguration; + set = neovimConfiguration { + inherit pkgs; + modules = [cfg.settings]; + }; in { meta.maintainers = [maintainers.notashelf];