Skip to content
/ dendrix Public

Commit e0bdb9c

Browse files
Adda0vic
authored andcommitted
fix: Fix typos
1 parent f6a3df9 commit e0bdb9c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

dev/book/src/Dendritic.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[Dendritic](https://github.com/mightyiam/dendritic) is a [pattern](https://discourse.nixos.org/t/pattern-every-file-is-a-flake-parts-module/61271) for writing nix configurations based on [flake-parts](https://flake.parts)'s [`modules` option](https://flake.parts/options/flake-parts-modules.html).
44

5-
We say that Dendritic nix configurations are _aspect-oriented_ meaning that each nix file
5+
We say that Dendritic nix configurations are _aspect-oriented_, meaning that each nix file
66
provides config-values for the same _aspect_ across different nix configuration classes.
77

88
This is done via flake-parts' `flake.modules.<class>.<aspect>` options.
@@ -43,9 +43,9 @@ will notice your code now incorporates the following:
4343

4444
## Denritic Advantages
4545

46-
### No need to use specialArgs for communicating values.
46+
### No need to use `specialArgs` for communicating values.
4747

48-
A common pattern for passing values between different nix configurations types (eg between a `nixos` config and a `homeManager` one),
48+
A common pattern for passing values between different nix configurations types (e.g., between a `nixos` config and a `homeManager` one),
4949
is to use the [`specialArgs`](https://nixos.org/manual/nixos/stable/options#opt-_module.args) module argument or [`home-manager.extraSpecialArgs`](https://home-manager.dev/manual/23.11/nixos-options.xhtml#nixos-opt-home-manager.extraSpecialArgs).
5050

5151
This is considered an _anti-pattern in dendritic setups_, since there's no need to use `specialArgs` at all. Because you can
@@ -89,7 +89,7 @@ This is possible because:
8989
In a Dendritic setup, each `.nix` file has only one interpretation: A flake-parts module.
9090

9191
Unlike other kinds of setup where each nix file can be a `nixos` configuration, or a `home-manager` configuration, or
92-
a package, or something entrely different. In such setups, loading a file requires you to know what kind of meaning
92+
a package, or something entirely different. In such setups, loading a file requires you to know what kind of meaning
9393
each file has before importing it.
9494

9595
This leads us to having:
@@ -147,7 +147,7 @@ instead of where they are applied.
147147

148148
### Feature _Closures_
149149

150-
By closure we mean: everything that is needed for a given _feature_ to work is
150+
By closure, we mean: everything that is needed for a given _feature_ to work is
151151
configured closely, in the same unit (file/directory named after the feature).
152152

153153
Because a single `feature.nix` contributes to different configuration classes, it has all
@@ -169,7 +169,7 @@ files from your modules (or adding an `_` for them to be ignored) has no
169169
other impact than the overall capabilities provided into your systems.
170170

171171
This is an easy way to disable loading files while on a huge refactor. Or when some hosts
172-
or features should be decomissioned immediatly/temporarily.
172+
or features should be decommissioned immediately/temporarily.
173173

174174
### No dependencies other than flake-parts
175175

0 commit comments

Comments
 (0)