mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-21 17:09:46 +01:00
78 lines
3.1 KiB
Markdown
78 lines
3.1 KiB
Markdown
# Hosts
|
|
|
|
1. `12kingdoms`:
|
|
1. `shoukei`: NixOS on Macbook Pro 2020 Intel i5, 13.3-inch, 16G RAM + 512G SSD.
|
|
1. `darwin`(macOS)
|
|
1. `fern`: MacBook Pro 2022 13-inch M2 16G, mainly for business.
|
|
1. `harmonica`: MacBook Pro 2020 13-inch i5 16G, for personal use.
|
|
1. `k8s`: My Kubevirt & Kubernetes Clusters
|
|
1. `idols`
|
|
1. `ai`: My main computer, with NixOS + I5-13600KF + RTX 4090 GPU, for gaming & daily use.
|
|
2. `aquamarine`: Kubevirt Virtual Machine.
|
|
- Monitoring(prometheus, grafana, exporters), CI/CD(gitea, runner), homepage, file browser,
|
|
and other services.
|
|
3. `ruby`: Not used now.
|
|
4. `kana`: Not used now.
|
|
1. Other aarch64/riscv64 SBCs:
|
|
[ryan4yin/nixos-config-sbc](https://github.com/ryan4yin/nixos-config-sbc)
|
|
|
|
## 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 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/<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.
|
|
1. Under `vars/networking.nix`
|
|
1. Add the new host's static IP address.
|
|
1. Skip this step if the new host is not in the local network or is a mobile device.
|
|
|
|
## idols - Oshi no Ko
|
|
|
|
These four servers are named after the four main characters of the mange/anime Oshi no Ko.
|
|
|
|
## rolling girls
|
|
|
|
My All RISCV64 hosts.
|
|
|
|

|
|
|
|
## Distributed Building
|
|
|
|
I usually run the build command on `Ai` and nix will distribute the build to other NixOS machines,
|
|
which is convenient and fast.
|
|
|
|
When building some packages for riscv64 or aarch64, I often have no cache available because of
|
|
various changes under the hood, so I need to build much more packages than usual, which is one of
|
|
the reasons why the cluster was originally built, and another reason is distributed building is
|
|
cool!
|
|
|
|

|
|
|
|

|
|
|
|
## References
|
|
|
|
[Oshi no Ko 【推しの子】 - Wikipedia](https://en.wikipedia.org/wiki/Oshi_no_Ko):
|
|
|
|
 
|
|
|
|
[The Rolling Girls【ローリング☆ガールズ】 - Wikipedia](https://en.wikipedia.org/wiki/The_Rolling_Girls):
|
|
|
|

|
|
|
|
[List of Twelve Kingdoms characters](https://en.wikipedia.org/wiki/List_of_Twelve_Kingdoms_characters)
|
|
|
|
 
|
|
|
|
[List of Frieren characters](https://en.wikipedia.org/wiki/List_of_Frieren_characters)
|