diff --git a/templates/simple/flake.nix b/templates/simple/flake.nix index 51ef9b8a..508ae15b 100644 --- a/templates/simple/flake.nix +++ b/templates/simple/flake.nix @@ -6,26 +6,23 @@ flake-utils.url = "github:numtide/flake-utils"; }; - outputs = - { nixpkgs - , nixvim - , flake-utils - , ... - } @ inputs: - let - config = import ./config; # import the module directly - in - flake-utils.lib.eachDefaultSystem (system: - let + outputs = { + nixpkgs, + nixvim, + flake-utils, + ... + } @ inputs: let + config = import ./config; # import the module directly + in + flake-utils.lib.eachDefaultSystem (system: let nixvimLib = nixvim.lib.${system}; - pkgs = import nixpkgs { inherit system; }; + pkgs = import nixpkgs {inherit system;}; nixvim' = nixvim.legacyPackages.${system}; nvim = nixvim'.makeNixvimWithModule { inherit pkgs; module = config; }; - in - { + in { checks = { # Run `nix flake check .` to verify that your config is not broken default = nixvimLib.check.mkTestDerivationFromNvim {