mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-16 07:28:00 +02:00
flake.nix: refactoring using flake-parts
This commit is contained in:
parent
1f1065df1e
commit
31284ddabe
13 changed files with 320 additions and 202 deletions
20
flake-modules/lib.nix
Normal file
20
flake-modules/lib.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
withSystem,
|
||||
...
|
||||
}: {
|
||||
flake.lib = lib.genAttrs config.systems (
|
||||
lib.flip withSystem (
|
||||
{
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
import ../lib {
|
||||
inherit pkgs lib;
|
||||
inherit (config.legacyPackages) makeNixvim;
|
||||
}
|
||||
)
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue