fix: allowing for override of conform

This commit is contained in:
D. Moonfire 2024-01-28 16:21:43 -06:00
parent 461cc3a899
commit 8fd4f8ed0f
3 changed files with 8 additions and 5 deletions

View file

@ -27,13 +27,16 @@
mkShellHook =
{ system
, pkgs
, conform ? { }
, rust ? { }
, ...
}:
let
rustDefaults = { enable = false; };
conformDefaults = { scopes = [ ]; };
configs = import ./src/configs/default.nix {
inherit system pkgs nixago nixago-exts;
conform = conformDefaults // conform;
rust = rustDefaults // rust;
};
in

View file

@ -1,7 +1,9 @@
inputs @ { system, nixago, nixago-exts, ... }:
inputs @ { system, nixago-exts, conform, ... }:
nixago-exts.conform.${system} {
commit = {
header = { length = inputs.pkgs.lib.debug.traceVal 89; };
header.length = 89;
scopes = conform.scopes;
conventional = {
types = [
"build"
@ -15,8 +17,6 @@ nixago-exts.conform.${system} {
"style"
"test"
];
scopes = [ "cli" ];
};
};
}

View file

@ -3,7 +3,7 @@ let
data = {
formatter = {
nix = {
command = "nixpkgs-fmt";
command = "${pkgs.nixpkgs-fmt}/bin/nixpkgs-fmt";
includes = [ "*.nix" ];
};