template/simple: simplify flake definition

This commit is contained in:
Gaetan Lepage 2024-02-19 10:07:13 +01:00 committed by Gaétan Lepage
parent 56bda1f1c1
commit 7af65ccae4

View file

@ -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;