docs(nix): remove premature flake outputs rule
This commit is contained in:
24
docs/nix.md
24
docs/nix.md
@@ -195,27 +195,3 @@ Use:
|
|||||||
lib.mapAttrs f attrs
|
lib.mapAttrs f attrs
|
||||||
```
|
```
|
||||||
|
|
||||||
## Flake Outputs
|
|
||||||
|
|
||||||
### Expose only supported flake outputs
|
|
||||||
|
|
||||||
Use public outputs for the supported interface of this flake.
|
|
||||||
Do not expose assembly functions as public outputs unless an external consumer needs them.
|
|
||||||
Keep internal functions in assembly files or `dotfiles` special arguments.
|
|
||||||
|
|
||||||
Avoid:
|
|
||||||
|
|
||||||
```nix
|
|
||||||
{
|
|
||||||
lib = flake;
|
|
||||||
nixosConfigurations = flake.mkHosts (self + "/hosts");
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
Use:
|
|
||||||
|
|
||||||
```nix
|
|
||||||
{
|
|
||||||
nixosConfigurations = flake.mkHosts (self + "/hosts");
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|||||||
Reference in New Issue
Block a user