mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-24 17:58:30 +02:00
chore(All Markdown Files): auto wrap text, fix typos
This commit is contained in:
@@ -5,32 +5,42 @@
|
||||
1. `harmonica`: MacBook Pro 2020 13-inch i5 16G, for personal use.
|
||||
2. `idols`
|
||||
1. `ai`: My main computer, with NixOS + I5-13600KF + RTX 4090 GPU, for gaming & daily use.
|
||||
2. `aquamarine`: My NixOS virtual machine as a router(IPv4 only) with a tranparent proxy to bypass the G|F|W.
|
||||
3. `ruby`: Another NixOS VM running operation and maintenance related services, such as prometheus, grafana, restic, etc.
|
||||
4. `kana`: Yet another NixOS VM running some common applications, such as hompage, file browser, torrent downloader, etc.
|
||||
2. `aquamarine`: My NixOS virtual machine as a router(IPv4 only) with a transparent proxy to
|
||||
bypass the G|F|W.
|
||||
3. `ruby`: Another NixOS VM running operation and maintenance related services, such as
|
||||
prometheus, grafana, restic, etc.
|
||||
4. `kana`: Yet another NixOS VM running some common applications, such as hompage, file browser,
|
||||
torrent downloader, etc.
|
||||
3. Homelab:
|
||||
1. `tailscale-gw`: A tailscale subnet router(gateway) for accessing my homelab remotely. NixOS VM running on Proxmox.
|
||||
1. `tailscale-gw`: A tailscale subnet router(gateway) for accessing my homelab remotely. NixOS VM
|
||||
running on Proxmox.
|
||||
4. `rolling_girls`: My RISCV64 hosts.
|
||||
1. `nozomi`: Lichee Pi 4A, TH1520(4xC910@2.0G), 16GB RAM + 32G eMMC + 128G SD Card.
|
||||
2. `yukina`: Milk-V Mars, JH7110(4xU74@1.5 GHz), 4G RAM + No eMMC + 64G SD Card.
|
||||
5. `12kingdoms`:
|
||||
1. `shoukei`: NixOS on Macbook Pro 2020 Intel i5, 13.3-inch, 16G RAM + 512G SSD.
|
||||
1. `suzu`: Orange Pi 5, RK3588s(4xA76 + 4xA55), GPU(4Cores, Mail-G610), NPU(6Tops@int8), 8G RAM + 256G SSD.
|
||||
1. `rakushun`: Orange Pi 5 Plus, RK3588(4xA76 + 4xA55), GPU(4Cores, Mail-G610), NPU(6Tops@int8), 16G RAM + 2T SSD.
|
||||
1. `suzu`: Orange Pi 5, RK3588s(4xA76 + 4xA55), GPU(4Cores, Mail-G610), NPU(6Tops@int8), 8G RAM +
|
||||
256G SSD.
|
||||
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`.
|
||||
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.
|
||||
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
|
||||
|
||||
@@ -44,9 +54,13 @@ 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.
|
||||
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!
|
||||
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!
|
||||
|
||||

|
||||
|
||||
@@ -56,8 +70,7 @@ When building some packages for riscv64 or aarch64, I often have no cache availa
|
||||
|
||||
[Oshi no Ko 【推しの子】 - Wikipedia](https://en.wikipedia.org/wiki/Oshi_no_Ko):
|
||||
|
||||

|
||||

|
||||
 
|
||||
|
||||
[The Rolling Girls【ローリング☆ガールズ】 - Wikipedia](https://en.wikipedia.org/wiki/The_Rolling_Girls):
|
||||
|
||||
@@ -65,7 +78,6 @@ When building some packages for riscv64 or aarch64, I often have no cache availa
|
||||
|
||||
[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)
|
||||
|
||||
Reference in New Issue
Block a user