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 = mkShellHook =
{ system { system
, pkgs , pkgs
, conform ? { }
, rust ? { } , rust ? { }
, ... , ...
}: }:
let let
rustDefaults = { enable = false; }; rustDefaults = { enable = false; };
conformDefaults = { scopes = [ ]; };
configs = import ./src/configs/default.nix { configs = import ./src/configs/default.nix {
inherit system pkgs nixago nixago-exts; inherit system pkgs nixago nixago-exts;
conform = conformDefaults // conform;
rust = rustDefaults // rust; rust = rustDefaults // rust;
}; };
in in

View file

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

View file

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