docs: Clarify internal vs. external import in template
I'm a Nix noob and just learning, but was a little bit confused about this at first; perhaps this helps to clarify it for others who will come along in the future.
This commit is contained in:
parent
758cf7296b
commit
7829070bcf
1 changed files with 5 additions and 4 deletions
|
|
@ -9,7 +9,8 @@
|
||||||
outputs = inputs@{ flake-parts, ... }:
|
outputs = inputs@{ flake-parts, ... }:
|
||||||
flake-parts.lib.mkFlake { inherit inputs; } {
|
flake-parts.lib.mkFlake { inherit inputs; } {
|
||||||
imports = [
|
imports = [
|
||||||
# To import a flake module
|
# To import an internal flake module: ./other.nix
|
||||||
|
# To import an external flake module:
|
||||||
# 1. Add foo to inputs
|
# 1. Add foo to inputs
|
||||||
# 2. Add foo as a parameter to the outputs function
|
# 2. Add foo as a parameter to the outputs function
|
||||||
# 3. Add here: foo.flakeModule
|
# 3. Add here: foo.flakeModule
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue