added notes and rebuilt flake
This commit is contained in:
34
README.md
34
README.md
@@ -1,7 +1,39 @@
|
||||
# A Dendritic Nix Flake
|
||||
|
||||
Regenerate flake and switch to it.
|
||||
|
||||
```shell
|
||||
nix run ".#write-flake"
|
||||
nix run .#write-flake
|
||||
nix flake check
|
||||
home-manager switch --flake .#desktop
|
||||
```
|
||||
|
||||
```shell
|
||||
nix flake show --all-systems
|
||||
```
|
||||
|
||||
## Mechanics
|
||||
|
||||
### Flake
|
||||
|
||||
The top-level flake is created using [flake-file](https://flake-file.oeiuwq.com/)
|
||||
|
||||
```shell
|
||||
nix flake init -t github:vic/flake-file#default
|
||||
...
|
||||
nix run ".#write-flake"
|
||||
```
|
||||
|
||||
This uses `inputs.flake-parts.lib.mkFlake` to create the flake.
|
||||
|
||||
The modules are automatically imported from the `./modules` using [import-tree](https://import-tree.oeiuwq.com/).
|
||||
|
||||
|
||||
### [Home Manager](https://flake.parts/options/home-manager.html)
|
||||
|
||||
Uses the home-manager module of flake-parts, which is imported in `modules/home-manager/flake-parts.nix`
|
||||
|
||||
Looks for options:
|
||||
|
||||
- `flake.homeConfigurations`
|
||||
- `flake.homeModules`
|
||||
|
||||
Reference in New Issue
Block a user