From 655d733a374e46dbc23e4e156fda01d1cb89127b Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Mon, 11 Mar 2024 11:42:12 +0800 Subject: [PATCH] docs: how to add new host --- hosts/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hosts/README.md b/hosts/README.md index 676ad703..88e6906c 100644 --- a/hosts/README.md +++ b/hosts/README.md @@ -27,7 +27,8 @@ 3. If the new host need to use home-manager, add its custom config into `hosts//home.nix`. 1. Under `outputs/` 1. Add a new nix file named `outputs//src/.nix`. - 2. Copy the content from one of the existing host's nix file, and modify it to fit the new host. + 2. Copy the content from one of the existing similar host, and modify it to fit the new host. + 1. Usually, you only need to modify the `name` and `tags` fields. 3. [Optional] Add a new unit test file under `outputs//tests/.nix` to test the new host's nix file. 4. [Optional] Add a new integration test file under `outputs//integration-tests/.nix` to test whether the new host's nix config can be built and deployed correctly.