docs(nix): remove premature flake outputs rule

This commit is contained in:
2026-08-28 10:38:46 -04:00
parent eef8e37fbb
commit 12f3abc11e

View File

@@ -195,27 +195,3 @@ Use:
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");
}
```