mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-19 12:09:48 +01:00
use config.packages
This commit is contained in:
parent
114f6499e2
commit
a468f25500
1 changed files with 39 additions and 42 deletions
|
@ -1,15 +1,13 @@
|
||||||
# Home Manager module
|
# Home Manager module
|
||||||
{inputs, ...}: {
|
{
|
||||||
perSystem = {
|
|
||||||
system,
|
|
||||||
config,
|
|
||||||
pkgs,
|
pkgs,
|
||||||
|
config,
|
||||||
lib ? pkgs.lib,
|
lib ? pkgs.lib,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.programs.neovim-flake;
|
cfg = config.programs.neovim-flake;
|
||||||
set = self'.packages.maximal {mainConfig = cfg.settings;};
|
set = config.packages.maximal {mainConfig = cfg.settings;};
|
||||||
in {
|
in {
|
||||||
meta.maintainers = [maintainers.notashelf];
|
meta.maintainers = [maintainers.notashelf];
|
||||||
|
|
||||||
|
@ -43,5 +41,4 @@
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home.packages = [set.neovim];
|
home.packages = [set.neovim];
|
||||||
};
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue