add host install commands

This commit is contained in:
Yan Lin 2025-11-04 20:37:21 +01:00
parent e1a404d43d
commit 52ca9cd04a

View file

@ -19,6 +19,15 @@ home-manager switch --flake .#yanlin@<host>
nix flake update nix flake update
``` ```
### New Host Installation
```bash
# 1. Initialize disk with disko
sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko -- --mode disko --flake .#<host>
# 2. Install NixOS
sudo nixos-install --flake .#<host>
```
### Occasional Commands ### Occasional Commands
```bash ```bash
# Garbage collection # Garbage collection
@ -64,7 +73,6 @@ nixos-rebuild build --flake .#<host>
- `oss` - Rebuild NixOS system - `oss` - Rebuild NixOS system
- `cdf` - Interactive file search with cd - `cdf` - Interactive file search with cd
- `pwdf` - Get file path interactively - `pwdf` - Get file path interactively
- `zi` - Interactive zoxide with fzf
### Tmux Reminders ### Tmux Reminders
- Prefix: `Ctrl-a` - Prefix: `Ctrl-a`