mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-22 08:59:02 +01:00
docs: how to add a new machine
This commit is contained in:
@@ -19,6 +19,18 @@
|
||||
1. `rakushun`: Orange Pi 5 Plus, RK3588(4xA76 + 4xA55), GPU(4Cores, Mail-G610), NPU(6Tops@int8), 16G RAM + 2T SSD.
|
||||
6. `k8s`: My Kubernetes Clusters
|
||||
|
||||
## How to add a new host
|
||||
|
||||
1. Under `hosts/`
|
||||
1. Create a new folder under `hosts/` with the name of the new host.
|
||||
2. Create & add the new host's `hardware-configuration.nix` to the new folder, and add the new host's `configuration.nix` to `hosts/<name>/default.nix`.
|
||||
3. If the new host need to use home-manager, add its custom config into `hosts/<name>/home.nix`.
|
||||
1. Under `outputs/`
|
||||
1. Add a new nix file named `outputs/<system-architecture>/src/<name>.nix`.
|
||||
2. Copy the content from one of the existing host's nix file, and modify it to fit the new host.
|
||||
3. [Optional] Add a new unit test file under `outputs/<system-architecture>/tests/<name>.nix` to test the new host's nix file.
|
||||
4. [Optional] Add a new integration test file under `outputs/<system-architecture>/integration-tests/<name>.nix` to test whether the new host's nix config can be built and deployed correctly.
|
||||
|
||||
## idols - Oshi no Ko
|
||||
|
||||
These four servers are named after the four main characters of the mange/anime Oshi no Ko.
|
||||
|
||||
Reference in New Issue
Block a user