mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
template/simple: simplify flake definition
This commit is contained in:
parent
56bda1f1c1
commit
7af65ccae4
1 changed files with 2 additions and 4 deletions
|
@ -11,9 +11,7 @@
|
||||||
nixvim,
|
nixvim,
|
||||||
flake-parts,
|
flake-parts,
|
||||||
...
|
...
|
||||||
} @ inputs: let
|
} @ inputs:
|
||||||
config = import ./config; # import the module directly
|
|
||||||
in
|
|
||||||
flake-parts.lib.mkFlake {inherit inputs;} {
|
flake-parts.lib.mkFlake {inherit inputs;} {
|
||||||
systems = [
|
systems = [
|
||||||
"x86_64-linux"
|
"x86_64-linux"
|
||||||
|
@ -31,7 +29,7 @@
|
||||||
nixvim' = nixvim.legacyPackages.${system};
|
nixvim' = nixvim.legacyPackages.${system};
|
||||||
nixvimModule = {
|
nixvimModule = {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
module = config;
|
module = import ./config; # import the module directly
|
||||||
# You can use `extraSpecialArgs` to pass additional arguments to your module files
|
# You can use `extraSpecialArgs` to pass additional arguments to your module files
|
||||||
extraSpecialArgs = {
|
extraSpecialArgs = {
|
||||||
# inherit (inputs) foo;
|
# inherit (inputs) foo;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue