mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-22 08:53:28 +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, ... }:
|
{ lib, inputs, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports =
|
||||||
inputs.treefmt-nix.flakeModule
|
[ ./devshell.nix ]
|
||||||
./devshell.nix
|
++ lib.optional (inputs.git-hooks ? flakeModule) inputs.git-hooks.flakeModule
|
||||||
] ++ lib.optional (inputs.git-hooks ? flakeModule) inputs.git-hooks.flakeModule;
|
++ lib.optional (inputs.treefmt-nix ? flakeModule) inputs.treefmt-nix.flakeModule;
|
||||||
|
|
||||||
perSystem =
|
perSystem =
|
||||||
{
|
{
|
||||||
|
@ -15,7 +15,7 @@
|
||||||
let
|
let
|
||||||
fmt = pkgs.nixfmt-rfc-style;
|
fmt = pkgs.nixfmt-rfc-style;
|
||||||
in
|
in
|
||||||
{
|
lib.optionalAttrs (inputs.treefmt-nix ? flakeModule) {
|
||||||
treefmt.config = {
|
treefmt.config = {
|
||||||
projectRootFile = "flake.nix";
|
projectRootFile = "flake.nix";
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue