From d7bd99744c24397cc1fc17cc8026c911aab36cb2 Mon Sep 17 00:00:00 2001 From: DannyDannyDanny Date: Mon, 30 Mar 2026 23:44:18 +0200 Subject: [PATCH] docs: update nixos/readme.md with current host targets :memo: Replace stale #macbookair example with current macOS, WSL, and sunken-ship rebuild commands. --- nixos/readme.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/nixos/readme.md b/nixos/readme.md index e264a5f..34e6316 100644 --- a/nixos/readme.md +++ b/nixos/readme.md @@ -3,9 +3,14 @@ Rebuild from dotfiles dir: ```bash -sudo nixos-rebuild switch --flake ~/dotfiles/nixos#macbookair -# or #wsl -# macOS: cd ~/dotfiles/nixos && darwin-rebuild switch --flake . +# macOS +cd ~/dotfiles/nixos && darwin-rebuild switch --flake . + +# WSL +sudo nixos-rebuild switch --flake ~/dotfiles/nixos#wsl + +# sunken-ship (on server) +sudo nixos-rebuild switch --flake /etc/dotfiles/nixos#sunken-ship ``` ## Server (sunken-ship) @@ -18,7 +23,7 @@ sudo mv /tmp/dotfiles /etc/dotfiles sudo nixos-rebuild switch --flake /etc/dotfiles/nixos#sunken-ship --option accept-flake-config true ``` -If the daemon doesn’t have flakes: copy [server-configuration-with-flakes.nix](server-configuration-with-flakes.nix) to `/etc/nixos/configuration.nix`, run `sudo nixos-rebuild switch`, then build and switch to the flake (see [server-quickstart.md](../server-quickstart.md) for SSH keys). +If the daemon doesn't have flakes: copy [server-configuration-with-flakes.nix](server-configuration-with-flakes.nix) to `/etc/nixos/configuration.nix`, run `sudo nixos-rebuild switch`, then build and switch to the flake (see [server-quickstart.md](../server-quickstart.md) for SSH keys). SSH keys (not in repo): `scp ~/.ssh/*.pub danny@server:/tmp/`, then on server `mkdir -p ~/.ssh; cat /tmp/*.pub >> ~/.ssh/authorized_keys`. See [docs/ssh-and-secrets.md](../docs/ssh-and-secrets.md).