From 82a7d666f592f43a07ba0b87e035399eeeb949ae Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Fri, 14 Jul 2023 21:44:31 +0100 Subject: [PATCH] fix: fix formatting on simple template --- templates/simple/flake.nix | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) 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 {