Skip to content

Commit

Permalink
feat: add first debug flag; default to false
Browse files Browse the repository at this point in the history
  • Loading branch information
blaggacao committed Oct 17, 2022
1 parent 61df29f commit 624dbeb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib-compat.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Callers:
config ? [],
env ? {},
pkgs ? import ./pkgs.nix,
debug ? false,
}: let
# configuration set
styxlib = import ./src/renderers/styxlib.nix {
Expand All @@ -36,7 +37,7 @@ Callers:
inherit themes env config;
};
in
pkgs.lib.trace "site config: ${pkgs.lib.generators.toPretty {} loaded.lib.config}" {
pkgs.lib.traceIf debug "site config: ${pkgs.lib.generators.toPretty {} loaded.lib.config}" {
inherit (loaded) lib conf decls;
themes = loaded;
}

0 comments on commit 624dbeb

Please sign in to comment.