fix: pass snowfall-config through to modules

This commit is contained in:
Jake Hamilton 2023-07-01 17:44:12 -07:00
parent 7d7546913d
commit 66e1335803
No known key found for this signature in database
GPG key ID: 9762169A1B35EA68
14 changed files with 24 additions and 3 deletions

View file

@ -1,6 +1,7 @@
{ core-inputs
, user-inputs
, snowfall-lib
, snowfall-config
}:
let
@ -31,7 +32,7 @@ in
# Type: Path -> Path
# Usage: get-snowfall-file "systems"
# result: "/user-source/snowfall-dir/systems"
get-snowfall-file = path: "${user-inputs.snowfall.root or user-inputs.src}/${path}";
get-snowfall-file = path: "${snowfall-config.root}/${path}";
# Get a file path relative to the this flake.
# Type: Path -> Path