From 898760b5c603330328a9860952829d7dd02c7dc4 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Fri, 31 Mar 2023 05:34:14 +0300 Subject: [PATCH] try using self.packages instead of overlays --- flake.nix | 4 +++- lib/hm-module.nix | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index a74aae5..36632c1 100644 --- a/flake.nix +++ b/flake.nix @@ -41,7 +41,9 @@ }; homeManagerModules.default = { - imports = [./lib/hm-module.nix]; + imports = [ + ./lib/hm-module.nix + ]; }; }; diff --git a/lib/hm-module.nix b/lib/hm-module.nix index 03e21ac..4648966 100644 --- a/lib/hm-module.nix +++ b/lib/hm-module.nix @@ -2,12 +2,12 @@ { self, config, - pkgs ? self.packages.default, + pkgs, lib ? pkgs.lib, ... }: let cfg = config.programs.neovim-flake; - set = pkgs.neovim-maximal {mainConfig = cfg.settings;}; + set = self.packages.neovim-maximal {mainConfig = cfg.settings;}; in with lib; { meta.maintainers = [maintainers.notashelf];