fix(module): set CHECK_MODE and SKIP_GITIGNORE in shell hook to default

add mkCLI shorthand
This commit is contained in:
technofab 2026-01-21 17:08:41 +01:00
parent 5caa66ec8d
commit 837ee45bed
Signed by: technofab
SSH key fingerprint: SHA256:bV4h88OqS/AxjbPn66uUdvK9JsgIW4tv3vwJQ8tpMqQ
2 changed files with 4 additions and 0 deletions

View file

@ -22,4 +22,5 @@ in rec {
}; };
mkShellHook = userConfig: (make userConfig).config.shellHook; mkShellHook = userConfig: (make userConfig).config.shellHook;
mkCLI = userConfig: (make userConfig).config.packages.soonix;
} }

View file

@ -253,6 +253,9 @@ in {
builtins.addErrorContext "[soonix] while generating shell hook" builtins.addErrorContext "[soonix] while generating shell hook"
# sh # sh
'' ''
CHECK_MODE=''${CHECK_MODE:-false}
SKIP_GITIGNORE=''${SKIP_GITIGNORE:-false}
_soonix_log() { _soonix_log() {
local level="$1" local level="$1"
local hook="$2" local hook="$2"