refactor(home): move host home-manager configs out of hosts

This commit is contained in:
Ryan Yin
2026-03-23 10:49:17 +08:00
parent 8b4e922e5b
commit cf7b5a5be7
17 changed files with 19 additions and 11 deletions

View File

@@ -79,7 +79,8 @@ configurations follow similar patterns but are customized for specific hardware
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`.
3. If the new host need to use home-manager, add its custom config into
`home/linux/hosts/<name>.nix` or `home/darwin/hosts/<name>.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.