mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
flake/dev: make treefmt-nix
optional
as this isn't used by consumers, they should be able to remove this input via `inputs.nixvim.inputs.treefmt-nix.follows = ""`
This commit is contained in:
parent
432a513ccd
commit
5feeb4eef8
1 changed files with 5 additions and 5 deletions
|
@ -1,9 +1,9 @@
|
|||
{ lib, inputs, ... }:
|
||||
{
|
||||
imports = [
|
||||
inputs.treefmt-nix.flakeModule
|
||||
./devshell.nix
|
||||
] ++ lib.optional (inputs.git-hooks ? flakeModule) inputs.git-hooks.flakeModule;
|
||||
imports =
|
||||
[ ./devshell.nix ]
|
||||
++ lib.optional (inputs.git-hooks ? flakeModule) inputs.git-hooks.flakeModule
|
||||
++ lib.optional (inputs.treefmt-nix ? flakeModule) inputs.treefmt-nix.flakeModule;
|
||||
|
||||
perSystem =
|
||||
{
|
||||
|
@ -15,7 +15,7 @@
|
|||
let
|
||||
fmt = pkgs.nixfmt-rfc-style;
|
||||
in
|
||||
{
|
||||
lib.optionalAttrs (inputs.treefmt-nix ? flakeModule) {
|
||||
treefmt.config = {
|
||||
projectRootFile = "flake.nix";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue