fix: fix formatting on simple template

This commit is contained in:
Pedro Alves 2023-07-14 21:44:31 +01:00
parent 0778266e44
commit 82a7d666f5

View file

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