diff --git a/templates/new/flake.nix b/templates/new/flake.nix index 0a80bb2be2..35ed31634d 100644 --- a/templates/new/flake.nix +++ b/templates/new/flake.nix @@ -23,6 +23,15 @@ inputs.nixvim.flakeModules.default ]; + nixvim = { + # Automatically install `nixvim-` packages for each nixvimConfiguration + # Lets you run `nix run .#nixvim-` + packages.enable = true; + # Automatically install checks for each nixvimConfiguration + # Run `nix flake check .` to verify that your config is not broken + checks.enable = true; + }; + # You can define your reusable Nixvim modules here flake.nixvimModules = { default = ./config; @@ -41,14 +50,9 @@ }; }; - checks = { - # Run `nix flake check .` to verify that your config is not broken - default = config.nixvimConfigurations.default.config.build.test; - }; - packages = { - # Lets you run `nix run .` to start nixvim - default = config.nixvimConfigurations.default.config.build.package; + # Lets you start nixvim using `nix run` + default = config.packages.nixvim-default; }; }; };