Merge pull request 'documenation: improve flake-parts' (#1214) from a-kenji-documentation/improve/flake-parts into main
This commit is contained in:
@@ -1,12 +1,12 @@
|
|||||||
# Clan with `flake-parts`
|
# Clan with `flake-parts`
|
||||||
|
|
||||||
Clan supports integration with [flake.parts](https://flake.parts/) a tool which allows modular compositions.
|
Clan supports integration with [flake.parts](https://flake.parts/) a tool which allows composing nixos modules in a modular way.
|
||||||
|
|
||||||
Here's how to set up Clan using flakes and flake-parts.
|
Here's how to set up Clan using `nix flakes` and `flake-parts`.
|
||||||
|
|
||||||
## 1. Update Your Flake Inputs
|
## 1. Update Your Flake Inputs
|
||||||
|
|
||||||
To begin, you'll need to add `flake-parts` as a new dependency in your flake's inputs. This is alongside the already existing dependencies, such as `flake-parts` and `nixpkgs`. Here's how you can update your `flake.nix` file:
|
To begin, you'll need to add `flake-parts` as a new dependency in your flake's inputs. This is alongside the already existing dependencies, such as `clan-core` and `nixpkgs`. Here's how you can update your `flake.nix` file:
|
||||||
|
|
||||||
```nix
|
```nix
|
||||||
# flake.nix
|
# flake.nix
|
||||||
@@ -90,4 +90,4 @@ With your flake created, explore how to add new machines by reviewing the docume
|
|||||||
|
|
||||||
* How do I use Clan machines install to setup my current machine?
|
* How do I use Clan machines install to setup my current machine?
|
||||||
* I probably need the clan-core sshd module for that?
|
* I probably need the clan-core sshd module for that?
|
||||||
* We need to tell them that configuration.nix of a machine NEEDS to be under the directory CLAN_ROOT/machines/<machine-name> I think?
|
* We need to tell them that configuration.nix of a machine NEEDS to be under the directory CLAN_ROOT/machines/<machine-name> I think?
|
||||||
|
|||||||
Reference in New Issue
Block a user