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,
flake-parts,
...
} @ inputs: let
config = import ./config; # import the module directly
in
} @ inputs:
flake-parts.lib.mkFlake {inherit inputs;} {
systems = [
"x86_64-linux"
@ -31,7 +29,7 @@
nixvim' = nixvim.legacyPackages.${system};
nixvimModule = {
inherit pkgs;
module = config;
module = import ./config; # import the module directly
# You can use `extraSpecialArgs` to pass additional arguments to your module files
extraSpecialArgs = {
# inherit (inputs) foo;