fix: allowing for override of conform
This commit is contained in:
parent
461cc3a899
commit
8fd4f8ed0f
3 changed files with 8 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@ let
|
|||
data = {
|
||||
formatter = {
|
||||
nix = {
|
||||
command = "nixpkgs-fmt";
|
||||
command = "${pkgs.nixpkgs-fmt}/bin/nixpkgs-fmt";
|
||||
includes = [ "*.nix" ];
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue