use config.packages

This commit is contained in:
NotAShelf 2023-03-31 18:17:06 +03:00
parent 114f6499e2
commit a468f25500
No known key found for this signature in database
GPG key ID: F0D14CCB5ED5AA22

View file

@ -1,15 +1,13 @@
# Home Manager module
{inputs, ...}: {
perSystem = {
system,
config,
{
pkgs,
config,
lib ? pkgs.lib,
...
}:
with lib; let
cfg = config.programs.neovim-flake;
set = self'.packages.maximal {mainConfig = cfg.settings;};
set = config.packages.maximal {mainConfig = cfg.settings;};
in {
meta.maintainers = [maintainers.notashelf];
@ -43,5 +41,4 @@
config = mkIf cfg.enable {
home.packages = [set.neovim];
};
};
}