1
1
forked from extern/flakelight

Fix flakelight.builtinFormatters option

The flakelight.builtinFormatters option was not being checked when
setting the built-in formatters.
This commit is contained in:
Archit Gupta 2023-11-22 20:55:01 -08:00
parent 87ba2051d3
commit 50982daa63

View File

@ -2,15 +2,15 @@
# Copyright (C) 2023 Archit Gupta <archit@accelbread.com>
# SPDX-License-Identifier: MIT
{ lib, ... }:
{ config, lib, ... }:
let
inherit (lib) mkEnableOption;
inherit (lib) mkEnableOption mkIf;
in
{
options.flakelight.builtinFormatters =
mkEnableOption "default formatters" // { default = true; };
config = {
config = mkIf config.flakelight.builtinFormatters {
devShell.packages = pkgs: [
pkgs.nixpkgs-fmt
pkgs.nodePackages.prettier