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