docs: update README with host descriptions and proper deployment instructions

This commit is contained in:
toast 2025-10-11 15:11:23 +09:00
parent dbecb53162
commit aa93f3eeda

View file

@ -1,9 +1,18 @@
# nix-config
my personal NixOS and home-manager configurations
My personal NixOS and home-manager configurations.
## Hosts
- `nixos`: My main computer.
- `vps`: 2GB KVM VPS server on [RackNerd](https://www.racknerd.com/), installed with NixOS using [nixos-infect](https://github.com/elitak/nixos-infect).
- `wsl`: NixOS on WSL via [NixOS-WSL](https://github.com/nix-community/NixOS-WSL).
- `y2q`: Spare Galaxy S20+ phone, repurposed as a Raspbian server using [Pi Deploy](https://github.com/DesktopECHO/Pi-hole-for-Android).
## Deploy
```sh
sudo nixos-rebuild switch --flake .#nixos
nix develop
deploy-nixos # Rebuild and switch the current NixOS system on this host
deploy-home # Apply Home Manager configuration for the current user
deploy-vps # Rebuild and switch NixOS on the remote VPS
```