From 7af65ccae4e46347296c7cc5b23f2905b2f9216f Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Mon, 19 Feb 2024 10:07:13 +0100 Subject: [PATCH] template/simple: simplify flake definition --- templates/simple/flake.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/templates/simple/flake.nix b/templates/simple/flake.nix index 8f95a06c..69b600e1 100644 --- a/templates/simple/flake.nix +++ b/templates/simple/flake.nix @@ -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;