Minor update

This commit is contained in:
Yan Lin 2025-09-24 22:37:56 +02:00
parent 13d7a44e45
commit 93e84a6675

View file

@ -9,10 +9,12 @@ Flake-based NixOS and nix-darwin configuration with home-manager.
# System rebuild # System rebuild
sudo darwin-rebuild switch --flake .#<host> # macOS sudo darwin-rebuild switch --flake .#<host> # macOS
sudo nixos-rebuild switch --flake .#<host> # NixOS sudo nixos-rebuild switch --flake .#<host> # NixOS
# or use alias: oss
# Home Manager # Home Manager
home-manager switch --flake .#yanlin@<host> home-manager switch --flake .#yanlin@<host>
# or use alias: hms # or use alias: hms
# the full switch alias `fs` will perform system rebuild then home manager switch
# Update flake # Update flake
nix flake update nix flake update
@ -62,9 +64,6 @@ darwin-rebuild build --flake .#<host>
## Modules ## Modules
Modules are self-contained and handle both package installation and configuration. Modules are self-contained and handle both package installation and configuration.
System modules provide NixOS/Darwin services, home modules provide user tools.
## Available Modules
- `borg-client.nix` - Backup client with scheduling - `borg-client.nix` - Backup client with scheduling
- `borg-server.nix` - Backup server configuration - `borg-server.nix` - Backup server configuration
@ -144,23 +143,7 @@ systemctl list-timers
## Notes ## Notes
- Borg backups need passphrase at `/etc/borg-passphrase` - Borg backups need passphrase at `/etc/borg-passphrase`
- Cookie files for yt-dlp in `config/yt-dlp/`
- Claude Code permissions configured globally in module
- Container definitions use podman backend - Container definitions use podman backend
- WireGuard configs need manual key exchange after first deploy - WireGuard configs need manual key exchange after first deploy
- ZFS snapshots managed by sanoid (where configured)
- Traefik handles SSL via Cloudflare DNS challenge - Traefik handles SSL via Cloudflare DNS challenge
## Troubleshooting
```bash
# Check nix daemon
sudo launchctl list | grep nix # macOS
systemctl status nix-daemon # NixOS
# Fix store permissions
sudo chown -R root:nixbld /nix/store
# Rebuild with verbose output
nixos-rebuild switch --flake .#<host> --show-trace
```